You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Cheolsoo Park (JIRA)" <ji...@apache.org> on 2012/07/21 02:58:34 UTC

[jira] [Updated] (PIG-2833) org.apache.pig.pigunit.pig.PigServer does not initialize set default log level of pigContext

     [ https://issues.apache.org/jira/browse/PIG-2833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cheolsoo Park updated PIG-2833:
-------------------------------

    Attachment: PIG-2833.patch

Attached is a patch that initializes the default log level of PigContext to Level.INFO.

I also added two test cases to TestGrunt to verify "set debug on/off" work properly.
                
> org.apache.pig.pigunit.pig.PigServer does not initialize set default log level of pigContext
> --------------------------------------------------------------------------------------------
>
>                 Key: PIG-2833
>                 URL: https://issues.apache.org/jira/browse/PIG-2833
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>         Environment: pig-0.10.0, Hadoop 2.0.0-cdh4.0.1 on Kubuntu 12.04 64Bit.
>            Reporter: Johannes Schwenk
>         Attachments: PIG-2833.patch
>
>
> The class org.apache.pig.pigunit.pig.PigServer does not set the default log level of its instance of PigContext so that pigunit tests that have 
> {code}
> set debug off;
> {code}
> in them, will cause a NullPointerException at org.apache.pig.PigServer line 291 because the default log level is not set.
> So I think org.apache.pig.pigunit.pig.PigServer should do something like 
> {code}
> pigContext.setDefaultLogLevel(Level.INFO);
> {code}
> in its contructors.

--
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