sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcin Cylke (Issue Comment Edited) (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (SQOOP-460) Verbose logging does not turn the level for correct logger
Date Mon, 12 Mar 2012 15:08:47 GMT

    [ https://issues.apache.org/jira/browse/SQOOP-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227590#comment-13227590
] 

Marcin Cylke edited comment on SQOOP-460 at 3/12/12 3:08 PM:
-------------------------------------------------------------

Log category for verbose mode not correctly set up.

{code}

Index: src/java/org/apache/sqoop/tool/BaseSqoopTool.java
===================================================================
--- src/java/org/apache/sqoop/tool/BaseSqoopTool.java	(revision 1298799)
+++ src/java/org/apache/sqoop/tool/BaseSqoopTool.java	(working copy)
@@ -631,9 +631,10 @@
     // common options.
     if (in.hasOption(VERBOSE_ARG)) {
       // Immediately switch into DEBUG logging.
-      Category sqoopLogger = Logger.getLogger(
-          Sqoop.class.getName()).getParent();
+      Category sqoopLogger = Logger.getLogger("com.cloudera.sqoop");
       sqoopLogger.setLevel(Level.DEBUG);
+      Category sqoopLogger2 = Logger.getLogger("org.apache.sqoop");
+      sqoopLogger2.setLevel(Level.DEBUG);
       LOG.debug("Enabled debug logging.");
     }
 
{code}
                
      was (Author: marcin_cylke):
    Log category for verbose mode not correctly set up.
                  
> Verbose logging does not turn the level for correct logger
> ----------------------------------------------------------
>
>                 Key: SQOOP-460
>                 URL: https://issues.apache.org/jira/browse/SQOOP-460
>             Project: Sqoop
>          Issue Type: Bug
>    Affects Versions: 1.4.1-incubating
>            Reporter: Arvind Prabhakar
>              Labels: logging
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message