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

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

Open
rgaufman opened this issue Jan 4, 2020 · 0 comments
Open

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

rgaufman opened this issue Jan 4, 2020 · 0 comments

Comments

@rgaufman
Copy link

rgaufman commented Jan 4, 2020

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

kostya added a commit that referenced this issue Jan 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant