-
Notifications
You must be signed in to change notification settings - Fork 492
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
Add command line option --LogModes
#12919
Add command line option --LogModes
#12919
Conversation
--LogModes
93f2b9f
to
29e25a2
Compare
29e25a2
to
cc3b74f
Compare
Right now If I misspell Regardless the empty string, I don't think Wasabi should crash, rather it should log a warning or an error that it couldn't parse the LogMode. |
cc3b74f
to
e52966e
Compare
Empty string should be parsed as "no logging targets". I changed it as such.
Ok, though real users do not see logs so if they make a typo, everything works except that it does not work as they want. @Szpoti Another issue here is that we are here in the process of initializing the logger and then you say we should log something (before it's initialized). |
I get your point, but this feature can only be done via terminal, right? My logic is that if a user starts Wasabi from the command line with On the other hand, now that the client doesn't crash with empty string, I get the idea why it should, if the user e.g. misspells the |
But from this perspective it's better to show an error than "hide" it from an experienced user, or not? |
Yeah, I think you're right with that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
fa0fe27
to
af1ceb3
Compare
Changed warning to exception in e8880b7. |
af1ceb3
to
e8880b7
Compare
I reimplemented this PR to align better with how we specify options in Also we don't log to One gotcha is that if the Tor process is already running we don't modify the setting (so in that scenario we fail). In #12749 I implemented restarting Tor if settings are not as user required (specified bridges in that PR) so we can use that approach to improve this. An alternative is to change the way how we set the |
5965740
to
cfa3e8e
Compare
…LogModes="file,console"`)
cfa3e8e
to
32d7d06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cACK
Kimi asked me to merge with Admin rights CF was blocking him. |
Contributes to #9805
This PR adds
--LogModes
command line option to specify that one wants to log to only specific logging targets1. Specifically one can omitfile
to avoid storing logging data.See also #9805 (comment).
Testing
Footnotes
--LogTargets
might be a better name than log modes. ↩