kostya / eye

Process monitoring tool. Inspired from Bluepill and God.
MIT License
1.19k stars 89 forks source link

Prevent logging "wrong switch 'starting_guard, refused to start'" #232

Open rgaufman opened 4 years ago

rgaufman commented 4 years ago

I have a starting_guard that prevents a process from starting until certain tasks are complete, this is normal and currently the logs are flooded with these kinds of messages:

[2020-01-04 10:18:59 +0000] [recorder_5cb590644caa413f317e7447:5cb590644caa413f317e7447:recorder] wrong switch 'starting_guard, refused to start'
[2020-01-04 10:18:59 +0000] [recorder_5cb590634caa4117b55c0d05:5cb590634caa4117b55c0d05:recorder] wrong switch 'starting_guard, refused to start'
[2020-01-04 10:18:59 +0000] [recorder_5d132b994caa411969dae716:5d132b994caa411969dae716:recorder] wrong switch 'starting_guard, refused to start'
[2020-01-04 10:18:59 +0000] [recorder_5cb59063c0528874795d995c:5cb59063c0528874795d995c:recorder] wrong switch 'starting_guard, refused to start'
[2020-01-04 10:18:59 +0000] [recorder_5cb590624caa413f317e743a:5cb590624caa413f317e743a:recorder] wrong switch 'starting_guard, refused to start'
[2020-01-04 10:18:59 +0000] [recorder_5cb590634caa4117b55c0d08:5cb590634caa4117b55c0d08:recorder] wrong switch 'starting_guard, refused to start'
[2020-01-04 10:18:59 +0000] [recorder_5cb59063c0528874795d995f:5cb59063c0528874795d995f:recorder] wrong switch 'starting_guard, refused to start'
[2020-01-04 10:18:59 +0000] [recorder_5cb59064c0528874795d996c:5cb59064c0528874795d996c:recorder] wrong switch 'starting_guard, refused to start'
[2020-01-04 10:18:59 +0000] [recorder_5d132bbcc05288536defe75d:5d132bbcc05288536defe75d:recorder] wrong switch 'starting_guard, refused to start'

Any way to prevent them, or to only have them show if running in DEBUG mode? - I am already using log level :warn