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

Ensure log messages are not duplicated in daemon log file #3890

Merged

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Apr 3, 2020

Fixes #3889

The logging for the daemon was configured with a handler both for
writing to stdout console as well as a rotating file handler that
writes directly to the daemon log file. The last one is the intended one
but since the default console handler was also kept, its output also
ended up in the daemon log file, duplicating every message.

The logging for the daemon was configured with a handler both for
writing to stdout `console` as well as a rotating file handler that
writes directly to the daemon log file. The last one is the intended one
but since the default `console` handler was also kept, its output also
ended up in the daemon log file, duplicating every message.
@sphuber sphuber requested review from giovannipizzi and ltalirz April 3, 2020 12:02
@codecov
Copy link

codecov bot commented Apr 3, 2020

Codecov Report

Merging #3890 into develop will decrease coverage by 7.14%.
The diff coverage is 50.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #3890      +/-   ##
===========================================
- Coverage    77.17%   70.02%   -7.15%     
===========================================
  Files          457      457              
  Lines        33774    33778       +4     
===========================================
- Hits         26065    23653    -2412     
- Misses        7709    10125    +2416     
Flag Coverage Δ
#django ?
#sqlalchemy 70.02% <50.00%> (-0.01%) ⬇️
Impacted Files Coverage Δ
aiida/common/log.py 94.33% <50.00%> (-3.62%) ⬇️
aiida/backends/djsite/utils.py 0.00% <0.00%> (-100.00%) ⬇️
aiida/backends/djsite/db/testbase.py 0.00% <0.00%> (-100.00%) ⬇️
aiida/orm/implementation/django/backend.py 0.00% <0.00%> (-100.00%) ⬇️
...iida/backends/djsite/db/migrations/0001_initial.py 0.00% <0.00%> (-100.00%) ⬇️
...a/backends/djsite/db/migrations/0013_django_1_8.py 0.00% <0.00%> (-100.00%) ⬇️
...a/backends/djsite/db/migrations/0039_reset_hash.py 0.00% <0.00%> (-100.00%) ⬇️
.../backends/djsite/db/migrations/0012_drop_dblock.py 0.00% <0.00%> (-100.00%) ⬇️
.../backends/djsite/db/migrations/0018_django_1_11.py 0.00% <0.00%> (-100.00%) ⬇️
...backends/djsite/db/migrations/0010_process_type.py 0.00% <0.00%> (-100.00%) ⬇️
... and 63 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99742f2...ed4757d. Read the comment docs.

Copy link
Member

@ltalirz ltalirz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @sphuber !

after the discussion, I understand what this is doing and it makes sense :-)

@sphuber sphuber merged commit 434c593 into aiidateam:develop Apr 3, 2020
@sphuber sphuber deleted the fix/3889/deduplicate-daemon-log-messages branch April 3, 2020 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log messages are duplicated in the daemon log
2 participants