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

Logging fix and enhancement #90

Merged
merged 3 commits into from
Dec 25, 2023
Merged

Logging fix and enhancement #90

merged 3 commits into from
Dec 25, 2023

Conversation

kpr0th
Copy link
Contributor

@kpr0th kpr0th commented Mar 4, 2023

Corrected issue where loglevel in mbusd.conf wasn't parsed correctly. Added support for logfile in mbusd.conf. Enhanced validation for loglevel and logfile [added missing validation in cfg.c, fixed error message for loglevel > 2 in non-DEBUG mode, added checks for missing logfile name which was previously treated as STDOUT only).
Updated README and mbusd..conf.example to true-up with "-h" output and new logging options.

@kpr0th kpr0th marked this pull request as draft December 22, 2023 15:22
Corrected issue where loglevel in mbusd.conf wasn't parsed correctly. Added support for logfile in mbusd.conf.  Updated README and mbusd..conf.example to true-up with "-h" output and new logging options.
Sync'd up verbiage in the usage details with the usage summary.
@kpr0th kpr0th marked this pull request as ready for review December 22, 2023 15:50
@kpr0th
Copy link
Contributor Author

kpr0th commented Dec 22, 2023

@3cky -- I noticed you made some recent changes. And picked up some of my suggested edits but not all of them. I merged in your upstream changes and then rebased my changes and added a couple more minor cleanups to sync the README and -h details. Note that my code changes were mainly to shore up command line parsing -- I think one or two of the logging-related options didn't actually take effect previously, and invalid parameter values would sometimes crash the app or at least result in unexpected logging options occurring; with the fixes I'm proposing, the logging code is a good bit more robust.

Please consider pulling in this PR now that it should merge cleanly again.

@3cky 3cky merged commit 7475bdf into 3cky:master Dec 25, 2023
1 check passed
@3cky
Copy link
Owner

3cky commented Dec 25, 2023

Merged. Thanks @kpr0th !

@kpr0th kpr0th deleted the logging-config branch December 25, 2023 20:12
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

Successfully merging this pull request may close these issues.

2 participants