You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ri...@apache.org on 2006/10/03 13:39:40 UTC
svn commit: r452430 - /incubator/qpid/trunk/qpid/java/common/bin/qpid-run
Author: ritchiem
Date: Tue Oct 3 04:39:39 2006
New Revision: 452430
URL: http://svn.apache.org/viewvc?view=rev&rev=452430
Log:
Added lines to automatically add amqj.logging.level to "info" on the command line. As without this the level is automatically set to debug but the console only displays info level and above messages. This results is a lot of wasted cycles.
If -Damqj.logging.level is present on the command line then that value will override the default of "info"
Related to QPID-12
Modified:
incubator/qpid/trunk/qpid/java/common/bin/qpid-run
Modified: incubator/qpid/trunk/qpid/java/common/bin/qpid-run
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/common/bin/qpid-run?view=diff&rev=452430&r1=452429&r2=452430
==============================================================================
--- incubator/qpid/trunk/qpid/java/common/bin/qpid-run (original)
+++ incubator/qpid/trunk/qpid/java/common/bin/qpid-run Tue Oct 3 04:39:39 2006
@@ -28,6 +28,10 @@
exit 1
}
+if [ -z $AMQJ_LOGGING_LEVEL ]; then
+ export AMQJ_LOGGING_LEVEL=info
+fi
+
if [ -z "$QPID_HOME" ]; then
die "QPID_HOME must be set"
fi
@@ -171,6 +175,6 @@
JAVA=$(cygpath -u $JAVA)
fi
-COMMAND=($JAVA $JAVA_VM $JAVA_MEM -DQPID_HOME=$QPID_HOME $JAVA_OPTS $QPID_OPTS "${JAVA_ARGS[@]}")
+COMMAND=($JAVA $JAVA_VM $JAVA_MEM -Damqj.logging.level=$AMQJ_LOGGING_LEVEL -DQPID_HOME=$QPID_HOME $JAVA_OPTS $QPID_OPTS "${JAVA_ARGS[@]}")
DISPATCH