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
commita6e80e575a8ca66f0f4cc9bf6ae1ec4b37c073e9 (patch)
treec7031871601316c5e6e2f08c485f07b50ee31b23
parenta9f5640f553011d3ea63235a316b0771e947fbdc (diff)
downloadqpid-python-a6e80e575a8ca66f0f4cc9bf6ae1ec4b37c073e9.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/qpid@452430 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/common/bin/qpid-run6
1 files changed, 5 insertions, 1 deletions
diff --git a/java/common/bin/qpid-run b/java/common/bin/qpid-run
index ef2348d45e..e8fd84051c 100644
--- a/java/common/bin/qpid-run
+++ b/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