GitHub user xwu0226 opened a pull request:

    https://github.com/apache/spark/pull/13422

    [SPARK-15681][core] allow lowercase or mixed case log level string when 
calling sc.setLogLevel

    ## What changes were proposed in this pull request?
    Currently `SparkContext API setLogLevel(level: String) `can not handle 
lower case or mixed case input string. But `org.apache.log4j.Level.toLevel` can 
take lowercase or mixed case. 
    
    Also `resetLogLevel` to original configuration could be helpful for users 
to switch  log level for different diagnostic purposes.
    
    
    ## How was this patch tested?
    A unit testcase is added.
    
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/xwu0226/spark reset_loglevel

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/13422.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #13422
    
----
commit 1a704ef2689af2c482ba9760d90debe32ad64a70
Author: Xin Wu <[email protected]>
Date:   2016-05-27T16:44:47Z

    add support to reset log level to original

commit 4ecb3c9a1d1fc5ccff2c15ae84d5f5b9de553ede
Author: Xin Wu <[email protected]>
Date:   2016-05-28T04:19:39Z

    support reset log level

commit bb297afac8fdee4a6ca2cca6b05e7137aaab4473
Author: Xin Wu <[email protected]>
Date:   2016-05-31T18:58:13Z

    add testcasse for log level setting and reset

commit 01e12f3bfaf1a6bdbf382a19aaef3c776b9ef2c1
Author: Xin Wu <[email protected]>
Date:   2016-05-31T19:04:41Z

    reset ReplSuite

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to