Logging Config #58

Closed
opened 2022-07-05 01:38:44 +02:00 by blacklight · 0 comments
Owner

Created by: ChrisDodgeRR

Trying to setup logging so that it is less verbose, so my config.yaml contains:

logging:
    level: WARNING
    filename: /etc/platypush/log/platypush.log

However the logging level is ignored as __init__.py explicitly sets the log level to INFO on line 30.

Removing this line on my setup basically works as intended, though some INFO log messages do still come through, for example:

2020-12-29 15:20:18,477| INFO|werkzeug|192.168.86.241 - - [29/Dec/2020 15:20:18] "POST /execute HTTP/1.1" 200 -
2020-12-29 15:20:18,478| INFO|werkzeug|192.168.86.241 - - [29/Dec/2020 15:20:18] "POST /execute HTTP/1.1" 200 -
2020-12-29 15:21:27,063| INFO|werkzeug|192.168.86.241 - - [29/Dec/2020 15:21:27] "POST /execute HTTP/1.1" 200 -

I've just started experimenting with it, and it seems to do exactly what I want, so many thanks!

*Created by: ChrisDodgeRR* Trying to setup logging so that it is less verbose, so my config.yaml contains: ``` logging: level: WARNING filename: /etc/platypush/log/platypush.log ``` However the logging level is ignored as `__init__.py` explicitly sets the log level to `INFO` on line 30. Removing this line on my setup basically works as intended, though some INFO log messages do still come through, for example: ``` 2020-12-29 15:20:18,477| INFO|werkzeug|192.168.86.241 - - [29/Dec/2020 15:20:18] "POST /execute HTTP/1.1" 200 - 2020-12-29 15:20:18,478| INFO|werkzeug|192.168.86.241 - - [29/Dec/2020 15:20:18] "POST /execute HTTP/1.1" 200 - 2020-12-29 15:21:27,063| INFO|werkzeug|192.168.86.241 - - [29/Dec/2020 15:21:27] "POST /execute HTTP/1.1" 200 - ``` I've just started experimenting with it, and it seems to do exactly what I want, so many thanks!
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: platypush/platypush#58
No description provided.