mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-21 10:50:10 +00:00
allow to adjust the log level globally (imaginary)
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$AIO_LOG_LEVEL" = 'debug' ]; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
nc -z 127.0.0.1 "$PORT" || exit 1
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user