logger.sh syntax error
Hello,
When I run it through docker, i get multiple lines of this error:
/app/logger.sh: line 46: ((: 1 >= : syntax error: operand expected (error token is ">= ") /app/logger.sh: line 51: ((: 1 >= : syntax error: operand expected (error token is ">= ")
Running the latest docker version 2.12.5
I haven't seen this error before. Let's see what's going on.
Are you able to share your Docker configuration as well as set the LOG_LEVEL to TRACE and share the output?
This only happens with log level trace. Here is my config: services: nautical-backup: image: minituff/nautical-backup:latest container_name: nautical-backup volumes: - /var/run/docker.sock:/var/run/docker.sock - config:/config - tests:/tests - /var/lib/docker/volumes:/app/source - /media/data/Backup/Nautical:/app/destination - /media/data2/Backup/Nautical:/app/destination2 environment: - TZ=Europe/Rome - CRON_SCHEDULE=55 3 * * */2 # - SKIP_CONTAINERS= - BACKUP_ON_START=true - LOG_LEVEL=trace - REPORT_FILE_LOG_LEVEL=trace - SECONDARY_DEST_DIRS=/app/destination2 - USE_DEST_DATE_FOLDER=true expose: - 8069 restart: always networks: - homepage - ntfy labels: - "com.centurylinklabs.watchtower.enable=true"
volumes: config: tests:
networks: homepage: external: true ntfy: external: true
I just noticed that it only happens when trace is lowercase, it goes away if I have it TRACE
Got it. So the error is only when you have the log level on trace?
The log levels are supposed to be uppercase, but I should probably just convert it to uppercase to avoid any confusion.
Yes, it only happens with lowercase trace, when I uppercase it, the error disappeared