allow to adjust the log level globally (imaginary)

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L.
2026-04-17 15:17:15 +02:00
parent d837898ade
commit 14c4ff7809
2 changed files with 19 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
#!/bin/bash
if [ "$AIO_LOG_LEVEL" = 'debug' ]; then
set -x
fi
nc -z 127.0.0.1 "$PORT" || exit 1

View File

@@ -1,5 +1,20 @@
#!/bin/bash
if [ "$AIO_LOG_LEVEL" = 'debug' ]; then
set -x
fi
if [ "$AIO_LOG_LEVEL" = 'debug' ]; then
export DEBUG='*'
export GOLANG_LOG='info'
elif [ "$AIO_LOG_LEVEL" = 'info' ]; then
export GOLANG_LOG='info'
elif [ "$AIO_LOG_LEVEL" = 'warn' ]; then
export GOLANG_LOG='warning'
else
export GOLANG_LOG='error'
fi
echo "Imaginary has started"
IMAGINARY_ARGS=(-return-size -max-allowed-resolution 222.2)