Closed schlunma closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 94.30%. Comparing base (
bbd307d
) to head (575129b
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Questions I have before proceeding with this:
main_log_debug.txt
still contain everything, i.e., also the CMOR-related messages? I think it should.cmor_log.txt
also include CMOR-related debug messages or only warnings? I think it should only include warnings.@ESMValGroup/technical-lead-development-team
Should the cmor_log.txt also include CMOR-related debug messages or only warnings? I think it should only include warnings.
I reckon only warnings is enough - we don't want to fix CMOR, we want to fix our own CMOR-related issues :+1:
Cheers for doing this, bud! Lemme know when you ready for a revue :fr:
Cheers for doing this, bud! Lemme know when you ready for a revue π«π·
It is now π
many thanks, Manu! If I understand correctly, we decided the CMOR log gets outputted always, not only when the main tool is run in logging DEBUG, right?
That DEBUG
here means that all messages (debug and above) are logged to that file. It will always be written, regardless of the user's log settings.
This directly relates to my question above:
- Should
main_log_debug.txt
still contain everything, i.e., also the CMOR-related messages? I think it should.
If I set this to WARNING
, then only warning messages and above are logged. Is this what we want? I guess yes? Note: the debug messages will always be in the main_log_debug.txt file.
That DEBUG here means that all messages (debug and above) are logged to that file. It will always be written, regardless of the user's log settings.
Gotcha! Good call! :beers:
And yes, I'd argue only CMOR WARNING messages be written to it - but what do others think about it, am looking at @sloosvel @ehogan and @bouweandela specifically :beer:
That DEBUG here means that all messages (debug and above) are logged to that file. It will always be written, regardless of the user's log settings.
Gotcha! Good call! π»
And yes, I'd argue only CMOR WARNING messages be written to it - but what do others think about it, am looking at @sloosvel @ehogan and @bouweandela specifically πΊ
Just to check my understanding: it will be possible to (always) see all CMOR logs via main_log_debug.txt
, but only warnings will be shown via cmor_log.txt
and main_log.txt
? If so, that seems reasonable to me! π
Just to check my understanding: it will be possible to (always) see all CMOR logs via
main_log_debug.txt
, but only warnings will be shown viacmor_log.txt
andmain_log.txt
? If so, that seems reasonable to me! π
CMOR warnings would not be shown in main_log.txt
(only in cmor_log.txt
), apart from that that's correct!
okidoki if there are no more suggestions then I think we should be go here :+1:
@bouweandela would you mind doing a final sweep and merge if all's good in yer books, plss, bud :beer:
Description
This PR adds filters to our logging configuration so that output from our CMOR checks and generic fixes will not appear in
stdout
andmain_log.txt
anymore, but rather in a dedicated filecmor_log.txt
. This makes the output of the tool much cleaner.Closes #2351
Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the π Technical or π§ͺ Scientific review.
To help with the number pull requests: