diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index 4d695a238..2119a432f 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -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) diff --git a/docker/cygnus-ngsi/cygnus-entrypoint.sh b/docker/cygnus-ngsi/cygnus-entrypoint.sh index 2f2d759b7..9b54af734 100755 --- a/docker/cygnus-ngsi/cygnus-entrypoint.sh +++ b/docker/cygnus-ngsi/cygnus-entrypoint.sh @@ -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