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

Remove double entries in log file #71

Open
EugenioCorso opened this issue Apr 15, 2020 · 4 comments
Open

Remove double entries in log file #71

EugenioCorso opened this issue Apr 15, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@EugenioCorso
Copy link
Contributor

The log messages are duplicated in the file in which they are written

@EugenioCorso EugenioCorso added the bug Something isn't working label Apr 15, 2020
@libremente
Copy link
Member

Could you please also provide an example showing a valid timestamp? Thanks @EugenioCorso

@CorsoGabriele
Copy link
Contributor

2020-04-23 13:25:36,838 INFO: Created file= Titolo, by user= [email protected] [in /home/gabriele/fare-invenio/fare/file_management/api.py:65]
2020-04-23 13:25:36,838 INFO: Created file= Titolo, by user= [email protected] [in /home/gabriele/fare-invenio/fare/file_management/api.py:65]

@libremente
Copy link
Member

Please check: https://stackoverflow.com/questions/6729268/log-messages-appearing-twice-with-python-logging
It's probably due to the fact that we're using the singleton in a wrong way.

@libremente
Copy link
Member

Please @CorsoGabriele could you double check on this? Thanks

@libremente libremente changed the title Double entries in log file Remove double entries in log file Jan 15, 2022
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
None yet
Development

No branches or pull requests

3 participants