diff --git a/Containers/clamav/healthcheck.sh b/Containers/clamav/healthcheck.sh index fe8b5daa..20e4db21 100644 --- a/Containers/clamav/healthcheck.sh +++ b/Containers/clamav/healthcheck.sh @@ -1,5 +1,9 @@ #!/bin/bash +if [ "$AIO_LOG_LEVEL" = 'debug' ]; then + set -x +fi + if [ "$(echo "PING" | nc 127.0.0.1 3310)" != "PONG" ]; then echo "ERROR: Unable to contact server" exit 1 diff --git a/Containers/clamav/start.sh b/Containers/clamav/start.sh index 609120c1..01cb3171 100644 --- a/Containers/clamav/start.sh +++ b/Containers/clamav/start.sh @@ -1,5 +1,9 @@ #!/bin/bash +if [ "$AIO_LOG_LEVEL" = 'debug' ]; then + set -x +fi + # Print out clamav version for compliance reasons clamscan --version diff --git a/Containers/clamav/supervisord.conf b/Containers/clamav/supervisord.conf index 88933ab2..1d7685b1 100644 --- a/Containers/clamav/supervisord.conf +++ b/Containers/clamav/supervisord.conf @@ -5,7 +5,7 @@ pidfile=/var/run/supervisord/supervisord.pid childlogdir=/var/log/supervisord/ logfile_maxbytes=50MB logfile_backups=10 -loglevel=error +loglevel=%(ENV_AIO_LOG_LEVEL)s [program:freshclam] stdout_logfile=/dev/stdout