Skip to content

Commit

Permalink
fix log level if env var is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Aug 22, 2023
1 parent de89f72 commit f891d0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/cygnus-ngsi/cygnus-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,11 @@ fi
touch /var/log/cygnus/cygnus.log
ln -snf /dev/stdout /var/log/cygnus/cygnus.log & PIDS="$PIDS $!"

if [ "$CYGNUS_LOG_LEVEL" ]; then
(sleep 10; curl -X PUT 'http://localhost:'$CYGNUS_API_PORT'/admin/log?level='$CYGNUS_LOG_LEVEL) &
fi


wait $PIDS
trap - TERM INT
wait $PIDS

0 comments on commit f891d0c

Please sign in to comment.