-
Notifications
You must be signed in to change notification settings - Fork 95
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
[FIX] Show logs in re-runs #637
Conversation
Codecov Report
@@ Coverage Diff @@
## master #637 +/- ##
==========================================
+ Coverage 93.54% 93.56% +0.02%
==========================================
Files 26 26
Lines 1967 1975 +8
==========================================
+ Hits 1840 1848 +8
Misses 127 127
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good to me. I checked over the test logs and those look good as well. Thanks for this!
RepLGR.setLevel(logging.INFO) | ||
RefLGR.setLevel(logging.INFO) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, maybe we should make those variables more distinct, or else we'll probably just do this again later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes look good to me, approved! Thanks @notZaki
Thanks for reviewing @jbteves. Now that we have the necessary reviews, I'll merge. |
Closes #606.
Changes proposed in this pull request:
logging.root
at the end of the worklow, only removesh
andlog_handler
logging.root
instead of usinglogging.basicConfig()
basicConfig
does nothing iflogging.root
already has handlerslogging.root
will have no handlers if a user is calling tedana, but it does have handlers if pytest is being usedbasicConfig
does nothing in the first run becauselogging.root
already has handlers, but then these handlers are deleted at the end of the first run. On the second run,basicConfig
works properly.tedana_$DATE.tsv
file in the output directory (or it is created, but file is empty)RefLGR
andRepLGR
at the end of workflowreport.txt
from the first run will contain appended text from the second runRepLGR
should've beenRefLGR
report.txt
if verbose mode was enabled (or maybe it had to be debug mode, forgot which one specifically)Possible discussion points:
but after this PR, it looks like
The
tedana_$DATE.tsv
still looks like the former, so it remains unchanged.