From 13ce4e021cfee87b975b9cebf0d7bf1e8d5c3e7a Mon Sep 17 00:00:00 2001 From: "James C. Scott" Date: Wed, 26 Jul 2017 11:20:05 -0400 Subject: [PATCH] Reduce logs from docker env Also make some logs available --- devtools/node/cleanup.js | 3 --- devtools/node/install_deps_then | 9 ++++++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/devtools/node/cleanup.js b/devtools/node/cleanup.js index 6eec7caa..60f04e54 100644 --- a/devtools/node/cleanup.js +++ b/devtools/node/cleanup.js @@ -8,7 +8,4 @@ chokidar.watch([ '^index.html*' ]).on('add', (file) => { fs.unlinkSync(`${file}`); - /* eslint-disable no-console */ - console.log(`deleted ${file}`); - /* eslint-enable no-console */ }); diff --git a/devtools/node/install_deps_then b/devtools/node/install_deps_then index a37a063e..fbf6fcd3 100755 --- a/devtools/node/install_deps_then +++ b/devtools/node/install_deps_then @@ -27,18 +27,21 @@ fi if [[ -z "${START_VNC}" ]]; then - echo "Not starting VNC" + echo "Not starting VNC..." else # make sure we comment out the nvm bash_completion line because # it doesn't work when starting VNC. sed -i 's/.*NVM_DIR\/bash_completion/#&/' $HOME/.bashrc # in the case of wait, we will want to setup the VNC. - /dockerstartup/vnc_startup.sh + echo "Starting VNC service..." + /dockerstartup/vnc_startup.sh &> /dev/null if [ $? -ne 0 ]; then # if it fails, we should exit before getting caught in the sleep command. - echo "something went wrong setting up vnc" + echo "Something went wrong setting up vnc" exit 1 fi + echo "VNC service started!" fi +echo "Running '$@'" exec "$@"