You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of today, there's no way, because of the watchdog.utils.echo.echo decorator applied on the watchdog.tricks.AutoRestartTrick.on_any_event method. This decorator writes unconditionally to stdout. A path to solve this issue would be:
Add -v/-vv verbosity mode (show INFO/DEBUG) and -q/--quiet (hide WARNING) options to all watchmedo commands;
Let all "echo" functions in utils accept a logger from logging instead of a file object;
Make all watchmedo commands use the "echo" functions with a logger instead of stdout. The new logger should write to stderr instead of stdout.
I wonder how many people use the watchdog.utils.echo module, it's mostly part of the watchmedo, but that proposed change can be done without breaking the current behavior of those functions.
Is this still planned? I've been using watchmedo for a long time, but those log messages are really spamming entire output, making it hard to visually find any relevant logs.
When using watchmedo auto-restart how can I suppress all the event messages logged to the console? It's noise I do not want to see.
Thanks.
Eg:
The text was updated successfully, but these errors were encountered: