Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment Variable LOG_LEVEL not respected #228

Open
instantdreams opened this issue Jan 30, 2025 · 0 comments
Open

Environment Variable LOG_LEVEL not respected #228

instantdreams opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@instantdreams
Copy link

🪲 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.

@instantdreams instantdreams added the bug Something isn't working label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant