You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Arvind Prabhakar (Created) (JIRA)" <ji...@apache.org> on 2012/03/09 16:27:04 UTC
[jira] [Created] (SQOOP-460) Verbose logging does not turn the
level for correct logger
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
--
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
[jira] [Assigned] (SQOOP-460) Verbose logging does not turn the
level for correct logger
Posted by "Arvind Prabhakar (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SQOOP-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arvind Prabhakar reassigned SQOOP-460:
--------------------------------------
Assignee: Marcin Cylke
> 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
> Assignee: Marcin Cylke
> Labels: logging
> Attachments: sqoop.patch
>
>
--
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
[jira] [Commented] (SQOOP-460) Verbose logging does not turn the
level for correct logger
Posted by "sathish (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SQOOP-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226232#comment-13226232 ]
sathish commented on SQOOP-460:
-------------------------------
Arvind, does sqoop supports Sybase..
> 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
>
--
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
[jira] [Commented] (SQOOP-460) Verbose logging does not turn the
level for correct logger
Posted by "Arvind Prabhakar (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SQOOP-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227620#comment-13227620 ]
Arvind Prabhakar commented on SQOOP-460:
----------------------------------------
@Marcin - thanks for the patch. In order for this change to be complete, we need to update the {{applyOptions()}} method for {{org.apache.sqoop.tool.JobTool}} and {{org.apache.sqoop.tool.MergeTool}} as well. If you can update the patch for that, that will be great.
If you are short on time please respond to this and I will be glad to take up your patch and incorporate this on top.
> 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
> Attachments: sqoop.patch
>
>
--
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
[jira] [Issue Comment Edited] (SQOOP-460) Verbose logging does not
turn the level for correct logger
Posted by "Marcin Cylke (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (SQOOP-460) Verbose logging does not turn the
level for correct logger
Posted by "sathish (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SQOOP-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
sathish updated SQOOP-460:
--------------------------
Comment: was deleted
(was: Arvind, does sqoop supports Sybase..)
> 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
>
--
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
[jira] [Updated] (SQOOP-460) Verbose logging does not turn the
level for correct logger
Posted by "Marcin Cylke (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SQOOP-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcin Cylke updated SQOOP-460:
-------------------------------
Attachment: sqoop.patch
> 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
> Attachments: sqoop.patch
>
>
--
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
[jira] [Commented] (SQOOP-460) Verbose logging does not turn the
level for correct logger
Posted by "Marcin Cylke (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SQOOP-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227594#comment-13227594 ]
Marcin Cylke commented on SQOOP-460:
------------------------------------
Mind that it's quick and dirty and is rather intended as a heads-up - might require more general approach.
> 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
> Attachments: sqoop.patch
>
>
--
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
[jira] [Updated] (SQOOP-460) Verbose logging does not turn the
level for correct logger
Posted by "Marcin Cylke (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SQOOP-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcin Cylke updated SQOOP-460:
-------------------------------
Labels: logging (was: )
Status: Patch Available (was: Open)
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