You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2013/04/05 14:32:00 UTC
svn commit: r1464952 -
/karaf/trunk/shell/console/src/main/java/org/apache/karaf/shell/util/ShellUtil.java
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) {