Skip to content

logging: set non-root logger to NOTSET also when loading from config file#631

Merged
kba merged 2 commits intomasterfrom
fix-logging-conf-override
Oct 21, 2020
Merged

logging: set non-root logger to NOTSET also when loading from config file#631
kba merged 2 commits intomasterfrom
fix-logging-conf-override

Conversation

@kba
Copy link
Copy Markdown
Member

@kba kba commented Oct 20, 2020

@bertsky This was why I originally had setOverrideLoglevel as part of intiLogging in #599: When loading from config file and setting the root logger to the override loglevel, all existing loggers must be set to NOTSET.

@kba kba linked an issue Oct 20, 2020 that may be closed by this pull request
Copy link
Copy Markdown
Collaborator

@bertsky bertsky left a comment

Choose a reason for hiding this comment

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

Understood! Better document this though.

Comment thread ocrd_utils/ocrd_utils/logging.py
Co-authored-by: Robert Sachunsky <38561704+bertsky@users.noreply.github.com>
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #631 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #631      +/-   ##
==========================================
+ Coverage   84.89%   84.91%   +0.02%     
==========================================
  Files          52       52              
  Lines        2952     2957       +5     
  Branches      575      577       +2     
==========================================
+ Hits         2506     2511       +5     
  Misses        332      332              
  Partials      114      114              
Impacted Files Coverage Δ
ocrd_utils/ocrd_utils/logging.py 92.40% <100.00%> (+0.51%) ⬆️

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 1b9283c...3d6ce8b. Read the comment docs.

@kba kba merged commit 7729086 into master Oct 21, 2020
@kba kba deleted the fix-logging-conf-override branch October 21, 2020 09:40
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.

CLI log-level ignored if config file is present

3 participants