Skip to content

Environment Variable LOG_LEVEL not respected #228

@instantdreams

Description

@instantdreams

🪲 Describe the bug
My apprise configuration includes the following environment variables:

APPRISE_STATEFUL_MODE=simple
APPRISE_CONFIG_LOCK=no
APPRISE_DEFAULT_THEME=dark
APPRISE_CONFIG_DIR=/config
LOG_LEVEL=WARNING
DEBUG=no

I expect only warning and higher messages to appear in the log.

💡 Screenshots and Logs

The following snippet from the log shows details of additional entries:

$ docker compose logs

apprise  | 2025-01-30T18:27:17.758457188Z 192.168.1.106 - - [30/Jan/2025:11:27:17 -0700] "GET /cfg/apprise HTTP/1.1" 200 9588 "http://192.168.1.93:8000/?key=apprise" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0"
apprise  | 2025-01-30T18:27:17.856862765Z 192.168.1.106 - - [30/Jan/2025:11:27:17 -0700] "GET /status HTTP/1.1" 200 155 "http://192.168.1.93:8000/cfg/apprise" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0"
apprise  | 2025-01-30T18:27:17.868781894Z 192.168.1.106 - - [30/Jan/2025:11:27:17 -0700] "GET /json/urls/apprise/?privacy=1 HTTP/1.1" 200 416 "http://192.168.1.93:8000/cfg/apprise" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0"
apprise  | 2025-01-30T18:27:17.897115820Z 2025-01-30 12:27:17,896 [INFO] django: VIEW - 127.0.0.1 - Retrieved configuration associated using KEY: apprise
apprise  | 2025-01-30T18:27:17.898345514Z 192.168.1.106 - - [30/Jan/2025:11:27:17 -0700] "POST /get/apprise HTTP/1.1" 200 292 "http://192.168.1.93:8000/cfg/apprise" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0"
apprise  | 2025-01-30T18:27:54.773063655Z 192.168.1.91 - - [30/Jan/2025:11:27:54 -0700] "GET / HTTP/1.1" 200 8100 "-" "Uptime-Kuma/1.23.16"
apprise  | 2025-01-30T18:28:01.330334382Z 2025-01-30 12:28:01,329 [WARNING] django: NOTIFY - 127.0.0.1 - One or more notifications not sent using KEY: apprise
apprise  | 2025-01-30T18:28:01.331128446Z 2025-01-30 12:28:01,330 [WARNING] django.request: Failed Dependency: /notify/apprise
apprise  | 2025-01-30T18:28:01.331887998Z 192.168.1.95 - - [30/Jan/2025:11:28:01 -0700] "POST /notify/apprise HTTP/1.1" 424 70 "-" "axios/0.27.2"
apprise  | 2025-01-30T18:28:06.334489725Z 2025/01/30 11:28:06 [info] 31#31: *3271 client 192.168.1.95 closed keepalive connection
apprise  | 2025-01-30T18:28:11.853414247Z 2025-01-30 12:28:11,852 [INFO] django: NOTIFY - 127.0.0.1 - Delivered Notification(s) - Tags: books, KEY: apprise
apprise  | 2025-01-30T18:28:11.854344415Z 192.168.93.1 - - [30/Jan/2025:11:28:11 -0700] "POST /notify/apprise HTTP/1.1" 200 30 "-" "Apprise"
apprise  | 2025-01-30T18:28:11.856567971Z 2025/01/30 11:28:11 [info] 30#30: *3275 client 192.168.93.1 closed keepalive connection
apprise  | 2025-01-30T18:28:11.857294097Z 2025-01-30 12:28:11,856 [INFO] django: NOTIFY - 127.0.0.1 - Delivered Stateless Notification(s)
apprise  | 2025-01-30T18:28:11.858224524Z 192.168.1.95 - - [30/Jan/2025:11:28:11 -0700] "POST /notify HTTP/1.1" 200 2 "-" "axios/0.27.2"
apprise  | 2025-01-30T18:28:16.861436535Z 2025/01/30 11:28:16 [info] 31#31: *3273 client 192.168.1.95 closed keepalive connection
apprise  | 2025-01-30T18:29:54.255441627Z 192.168.93.1 - - [30/Jan/2025:11:29:54 -0700] "GET / HTTP/1.1" 200 38344 "-" "Uptime-Kuma/1.23.16"

I made sure to send a badly formed request and a correctly formed request so generate warnings as well as information logs.

💻 Your System Details:

  • OS: Debian 12
  • Python Version: Latest docker image

🔮 Additional context
I recognise that the HTTP messages may be unavoidable but there are several [INFO] messages that should not make it through the LOG_LEVEL being set to WARNING as per the environment variables instructions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions