Skip to content

Commit

Permalink
Fix apparent logic error in _log
Browse files Browse the repository at this point in the history
Make noise when JUPYTER_DOCKER_STACKS_QUIET is empty
  • Loading branch information
maresb committed Nov 12, 2021
1 parent c00d35a commit f974efe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions base-notebook/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -e
# always log errors and warnings, but can be silenced by setting
# JUPYTER_DOCKER_STACKS_QUIET.
_log () {
if [[ "$*" == "ERROR:"* ]] || [[ "$*" == "WARNING:"* ]] || [[ "$JUPYTER_DOCKER_STACKS_QUIET" != "" ]]; then
if [[ "$*" == "ERROR:"* ]] || [[ "$*" == "WARNING:"* ]] || [[ "$JUPYTER_DOCKER_STACKS_QUIET" == "" ]]; then
echo "$@"
fi
}
Expand Down Expand Up @@ -207,7 +207,6 @@ else
# NOTE: This hook is run as the user we started the container as!
run-hooks /usr/local/bin/before-notebook.d

unset_explicit_env_vars
_log "Executing the command:" "${cmd[@]}"
exec "${cmd[@]}"
fi

0 comments on commit f974efe

Please sign in to comment.