Make bookkeeper shell more userfriendly
@@ -38,7 +38,6 @@ fi
if [ "x$JMXDISABLE" = "x" ]
then
- echo "JMX enabled by default" >&2
# for some reason these two options are necessary on jdk6 on Ubuntu
# accord to the docs they are not necessary, but otw jconsole cannot
# do a local attach
@@ -170,6 +169,12 @@ OPTS="$OPTS -Djava.net.preferIPv4Stack=true"
# log directory & file
BOOKIE_LOG_APPENDER=${BOOKIE_LOG_APPENDER:-"Console"}
+
+# send bookie shell output to console unconditionally
+if [ $COMMAND == "shell" ]; then
+BOOKIE_LOG_APPENDER=Console
+fi
+
BOOKIE_LOG_DIR=${BOOKIE_LOG_DIR:-"$BK_HOME/logs"}
BOOKIE_LOG_FILE=${BOOKIE_LOG_FILE:-"bookkeeper-server.log"}
