Skip to content

Commit

Permalink
Merge pull request #2287 from telefonicaid/fix/set_log_level_at_start
Browse files Browse the repository at this point in the history
fix log level if env var is provided
  • Loading branch information
fgalan authored Aug 22, 2023
2 parents de89f72 + a1f199a commit d7066ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- [cygnus-ngsi] Switch log level to CYGNUS_LOG_LEVEL env var if was provided to docker (#2286)
- [cygnus-common][SQL] Fix expiration records tablename used by delete and select (#2265)
- [cygnus-common][SQL] Fix expiration records select with a limit to avoid java out of memory error (#2273)
- [cygnus-ngsi] Removes "_" in schema name for DM -schema family (#2270, #2201 reopens for Postgis)
Expand Down
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 d7066ca

Please sign in to comment.