Ensure docs are complete and correct with respect to SEVERE vs ERROR#11
Merged
infotroph merged 7 commits intoinfotroph:logger-oldvalsfrom Aug 6, 2025
Merged
Conversation
14 tasks
Merged
14 tasks
infotroph
approved these changes
Aug 6, 2025
| return(40) | ||
| } else if (toupper(level) == "SEVERE") { | ||
| return(40) | ||
| return(50) |
Co-authored-by: Chris Black <chris@ckblack.org>
Co-authored-by: Chris Black <chris@ckblack.org>
Co-authored-by: Chris Black <chris@ckblack.org>
Co-authored-by: Chris Black <chris@ckblack.org>
Co-authored-by: Chris Black <chris@ckblack.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Written while reviewing of PecanProject#3589
@infotroph please advise if you prefer I target this PR to pecan/develop instead of your PR.
Summary
logger.getLevelNumberwhere ERROR and SEVERE were assigned the same value. I believe that this is whylogger.severedoes not stop workflows like it should.Question for discussion
What is the desired behavior for SEVERE, and what is the desired default?
My opinion: by default,
logger.severeshould stop execution and throw an error that can be caught in testing withtestthat::expect_error.Currently, the
logger.setQuitOnSeveredocs are unclear:First, the default set at top of logger.R
But the
logger.setQuitOnSeveredocs indicate that default is TRUE, although I don't fully understand the desired behavior when run interactively, inside Rstudio, or when scripted. And what makes Rstudio special? Is that just a shorthand for 'interactive' - would the same thing happen when run in Rstudio as a background job?