Skip to content

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

Description

@rgaufman

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions