karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject svn commit: r1464952 - /karaf/trunk/shell/console/src/main/java/org/apache/karaf/shell/util/ShellUtil.java
Date Fri, 05 Apr 2013 12:32:00 GMT
Author: jbonofre
Date: Fri Apr  5 12:31:59 2013
New Revision: 1464952

URL: http://svn.apache.org/r1464952
Log:
[KARAF-2234] Log command message in ERROR level

Modified:
    karaf/trunk/shell/console/src/main/java/org/apache/karaf/shell/util/ShellUtil.java

Modified: karaf/trunk/shell/console/src/main/java/org/apache/karaf/shell/util/ShellUtil.java
URL: http://svn.apache.org/viewvc/karaf/trunk/shell/console/src/main/java/org/apache/karaf/shell/util/ShellUtil.java?rev=1464952&r1=1464951&r2=1464952&view=diff
==============================================================================
--- karaf/trunk/shell/console/src/main/java/org/apache/karaf/shell/util/ShellUtil.java (original)
+++ karaf/trunk/shell/console/src/main/java/org/apache/karaf/shell/util/ShellUtil.java Fri
Apr  5 12:31:59 2013
@@ -235,8 +235,10 @@ public class ShellUtil {
     	try {
             if (t instanceof CommandNotFoundException) {
                 LOGGER.debug("Unknown command entered", t);
+            } else if (t instanceof CommandException ) {
+                LOGGER.debug("Command exception (Undefined option, ...)", t);
             } else {
-                LOGGER.info("Exception caught while executing command", t);
+                LOGGER.error("Exception caught while executing command", t);
             }
     	    session.put(SessionProperties.LAST_EXCEPTION, t);
     	    if (t instanceof CommandException) {



Mime
View raw message