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

Add an option to disable console logging #3451

Merged
merged 1 commit into from Jul 13, 2022

Conversation

marta-lokhova
Copy link
Contributor

Resolves #3386

Note that instead of disabling console logging by default, I added an option to disable it. I find console logging useful most of the time when developing/testing, as it's easier to quickly eyeball the logs instead of having to deal with files. But if anyone feels strongly about this, let me know. Otherwise, I think people who do not want logs in both places simply need to update their run command to include the new flag (I think it's also better this way in case some of the operators rely on default console logging)

@marta-lokhova marta-lokhova added this to In progress in v19.2.0 via automation Jun 17, 2022
@MonsieurNicolas
Copy link
Contributor

I think the behavior I proposed in the issue is the more sensible one:
it's very unusual for a daemon to log to stdout/stderr when a log file is specified.

This explains why sysadmins get confused with the existing behavior (including our own ops team).

I agree that for core developers logging to console is probably what people want even when logging to files, but that is niche enough as a use case that opt-in into this is probably the better option.

@MonsieurNicolas MonsieurNicolas removed this from In progress in v19.2.0 Jun 24, 2022
@MonsieurNicolas MonsieurNicolas added this to In progress in v19.3.0 via automation Jun 24, 2022
@marta-lokhova
Copy link
Contributor Author

okay, I updated the PR @MonsieurNicolas

@MonsieurNicolas
Copy link
Contributor

r+ caf8842

@latobarita latobarita merged commit 919ba0e into stellar:master Jul 13, 2022
v19.3.0 automation moved this from In progress to Done Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

changed logging behavior to avoid duplicate logging
3 participants