-
-
Notifications
You must be signed in to change notification settings - Fork 422
[breaking] daemon --debug-file
will overwrite the log file instead of appending to it
#1773
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
Conversation
daemon --debug-file
will overwrite instead of appending to it (削除ここまで)daemon --debug-file
will overwrite the log file instead of appending to it (追記ここまで)
I'm not too fond of it, and IDE2 does not need it.
On the IDE2 side, the gRPC log files preference should be a path to a folder. IDE2 should create a new log file per app session.
I've never seen an app/tool updating log files by erasing the content from the previous session.
@kittaakos it depends on what we want to achieve on the IDE. I believe a single file being overwritten every time is enough because otherwise, the CLI would log tons of lines and as a user, I wouldn't want to find a folder with a 10GB log file.
But this is only my opinion. In any case, with the change made in this PR we can still achieve what you are saying (that is: having a log file per session), we'd just need to name every file differently.
Let's discuss this in a separate thread because whether or not we'll have multiple log files in the IDE, it's not a CLI matter.
I wouldn't want to find a folder with a 10GB log file.
Then don't enable it.
Closing as won't fix.
Uh oh!
There was an error while loading. Please reload this page.
Please check if the PR fulfills these requirements
before creating one)
our contributing guidelines
UPGRADING.md
has been updated with a migration guide (for breaking changes)What kind of change does this PR introduce?
daemon --debug-file log.txt
will overwritelog.txt
instead of appending to itWhat is the current behavior?
daemon --debug-file log.txt
will append onlog.txt
What is the new behavior?
daemon --debug-file log.txt
will overwritelog.txt
Does this PR introduce a breaking change, and is titled accordingly?
Yes, UPGRADING.md has been updated