summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2006-10-03 11:39:39 +0000
committerMartin Ritchie <ritchiem@apache.org>2006-10-03 11:39:39 +0000
commitc5008ad7e692bfaaac6235dea731eec1c6098bd5 (patch)
tree7122af613c21fe270c1f58fe67a6311a3b0f254b
parent914ab35ceb3d33934c93d682faa5a03770719238 (diff)
downloadqpid-python-c5008ad7e692bfaaac6235dea731eec1c6098bd5.tar.gz
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 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@452430 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/java/common/bin/qpid-run6
1 files changed, 5 insertions, 1 deletions
diff --git a/qpid/java/common/bin/qpid-run b/qpid/java/common/bin/qpid-run
index ef2348d45e..e8fd84051c 100644
--- a/qpid/java/common/bin/qpid-run
+++ b/qpid/java/common/bin/qpid-run
@@ -28,6 +28,10 @@ die() {
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 @@ if $cygwin; then
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