karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Opher Shachar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-2381) The shell log:set command not as documented
Date Thu, 11 Jul 2013 20:29:51 GMT

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

Opher Shachar commented on KARAF-2381:
--------------------------------------

+Perhaps this patch will do the trick?+
{code}
--- <html>org/apache/karaf/shell/log/SetLogLevel.java (<b>Today 23:17:40</b>)</html>
+++ <html><b>Current File</b></html>
@@ -103,6 +103,9 @@
         } else {
             props.put(prop, val);
         }
+        if (cfg.getBundleLocation() != null) {
+            cfg.setBundleLocation(null);
+        }
         cfg.update(props);
 
         return null;
{code}

                
> The shell log:set command not as documented
> -------------------------------------------
>
>                 Key: KARAF-2381
>                 URL: https://issues.apache.org/jira/browse/KARAF-2381
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.3.1
>         Environment: Windows 7 + JDK7, RedHat 5 Linux + JDK6
>            Reporter: Opher Shachar
>            Assignee: Freeman Fang
>
> Running the shell's *log:set _LogLevel_ _PackageName_* command makes the change *persistent*
in contrary to the [documentation|http://repo1.maven.org/maven2/org/apache/karaf/manual/2.3.1/manual-2.3.1.html#ConsoleLogCommands].
> On the flip side *log:set _DEFAULT_ _PackageName_* is _not_ persisted.
> So, the *log:set* command should either:
> * make *log:set _DEFAULT_ _PackageName_* persisted (and fix the documentation), or
> * make *log:set _LogLevel_ _PackageName_* _not_ persistent (as documented).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message