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

[enhancement] Add debug mode in monitoring config #75

Open
devkapilbansal opened this issue Oct 13, 2021 · 0 comments
Open

[enhancement] Add debug mode in monitoring config #75

devkapilbansal opened this issue Oct 13, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Easy issues for attracting Hacktoberfest participants.

Comments

@devkapilbansal
Copy link
Member

Yes, I remove -t flag when logging in verbose mode. In verbose_mode, it is automatically tagging the logged message by the procd service name and if I pass a tag, then the message is logged twice

What do you think about adding a new "debug mode" to turn this on?

[ "$verbose_mode" -eq "1" ] && procd_set_param stdout 1 && procd_set_param stderr 1

In verbose mode we could avoid using it. In debug mode we would know (and document) that any output is sent to the logging facility, causing some output to be repeated, Or alternatively, we could even modify our log function to use echo instead of logger.

See #57 (comment)

@devkapilbansal devkapilbansal added enhancement New feature or request good first issue Good for newcomers hacktoberfest Easy issues for attracting Hacktoberfest participants. labels Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Easy issues for attracting Hacktoberfest participants.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant