drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From par...@apache.org
Subject drill git commit: DRILL-2798 - don't print message about Drill log dir unless environment variable DRILL_LOG_DEBUG=1
Date Wed, 15 Apr 2015 21:12:18 GMT
Repository: drill
Updated Branches:
  refs/heads/master 033d0dfd6 -> cb47df0c8


DRILL-2798 - don't print message about Drill log dir unless environment variable DRILL_LOG_DEBUG=1


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/cb47df0c
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/cb47df0c
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/cb47df0c

Branch: refs/heads/master
Commit: cb47df0c87676c5e0c0f94e5346fcd28f73080d7
Parents: 033d0df
Author: Patrick Wong <pwong@maprtech.com>
Authored: Wed Apr 15 13:32:18 2015 -0700
Committer: Parth Chandra <pchandra@maprtech.com>
Committed: Wed Apr 15 14:08:46 2015 -0700

----------------------------------------------------------------------
 distribution/src/resources/drill-config.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/cb47df0c/distribution/src/resources/drill-config.sh
----------------------------------------------------------------------
diff --git a/distribution/src/resources/drill-config.sh b/distribution/src/resources/drill-config.sh
index 7ddec65..c66afea 100644
--- a/distribution/src/resources/drill-config.sh
+++ b/distribution/src/resources/drill-config.sh
@@ -85,7 +85,9 @@ fi
 touch "$DRILL_LOG_DIR/sqlline.log" &> /dev/null
 TOUCH_EXIT_CODE=$?
 if [ "$TOUCH_EXIT_CODE" = "0" ]; then
-  echo "Drill log directory: $DRILL_LOG_DIR"
+  if [ "x$DRILL_LOG_DEBUG" = "x1" ]; then
+    echo "Drill log directory: $DRILL_LOG_DIR"
+  fi
   DRILL_LOG_DIR_FALLBACK=0
 else
   #Force DRILL_LOG_DIR to fall back
@@ -93,7 +95,9 @@ else
 fi
 
 if [ ! -d "$DRILL_LOG_DIR" ] || [ "$DRILL_LOG_DIR_FALLBACK" = "1" ]; then
-  echo "Drill log directory $DRILL_LOG_DIR does not exist or is not writable, defaulting
to $DRILL_HOME/log"
+  if [ "x$DRILL_LOG_DEBUG" = "x1" ]; then
+    echo "Drill log directory $DRILL_LOG_DIR does not exist or is not writable, defaulting
to $DRILL_HOME/log"
+  fi
   DRILL_LOG_DIR=$DRILL_HOME/log
   mkdir -p $DRILL_LOG_DIR
 fi


Mime
View raw message