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

[Bug]: Logger is printing duplicate messages #229

Open
tomvothecoder opened this issue Dec 7, 2023 · 3 comments
Open

[Bug]: Logger is printing duplicate messages #229

tomvothecoder opened this issue Dec 7, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@tomvothecoder
Copy link
Collaborator

What happened?

Refer to the log output in this issue: #228 (comment)

What did you expect to happen? Are there are possible answers you came across?

No response

Minimal Complete Verifiable Example (MVCE)

No response

Relevant log output

No response

Anything else we need to know?

No response

Environment

Latest e3sm_to_cmip

@tomvothecoder tomvothecoder added the bug Something isn't working label Dec 7, 2023
@TonyB9000
Copy link
Contributor

Regarding duplicate messages, this web-post may address the issue:

https://stackoverflow.com/questions/67269916/how-to-avoid-root-handler-being-called-from-the-custom-logger-in-python

@tomvothecoder
Copy link
Collaborator Author

@TonyB9000 Thanks Tony! I would like to address this soon in e3sm_to_cmip and e3sm_diags, as I'm sure it annoys everyone including me.

@TonyB9000
Copy link
Contributor

@tomvothecoder A minor, related annoyance: Even just issuing e3sm_to_cmip --help results in a "logs" directory created.

Also, with info-mode, the stderr logging says "output will be written to (numeric-filename).log", but never is such a log created.

(Separate issues, I know...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants