Repository navigation
Convert configuration error printf calls to logError (#412) - #417
Merged
Alomir merged 6 commits intoOct 26, 2026
Merged
Conversation
coder-Yash886
requested review from
Alomir,
dlebauer,
mdietze and
mswilburn
as code owners
October 23, 2026 16:46
Contributor
Author
|
@dlebauer @Alomir @infotroph Please Review the Pr when you have free time. |
Alomir
requested changes
Oct 24, 2026
Alomir
left a comment
Collaborator
There was a problem hiding this comment.
Hi @coder-Yash886, thank you for contributing! A couple of comments:
- These should be calls to
logInternalError, notlogError - Please remove the
Internal error:text from the log lines, as that is printed as part oflogInternalError
Collaborator
|
Whoops, that's not clear enough: the calls that exit with |
Alomir
reviewed
Oct 24, 2026
Contributor
Author
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.
closes#412
Summary
printf()configuration error calls insrc/common/context.cwith SIPNET's logging system (logError()), ensuring consistent error prefixes and logging levels. Also made error messages actionable by identifying offending parameter names and types where available.context.cused rawprintf()while others usedlogError(), resulting in inconsistent error reporting across configuration failures and bypassing log level handling.How was this change tested?
make test— all 24 unit tests passed and all 5 smoke test suites passed with zero diffs.--quiet:./sipnet -i tests/smoke/niwot/sipnet.in --quiet --soil-phenol --gddand confirmed[ERROR ] soil-phenol and gdd may not both be turned onremains visible (exit code 3)../sipnet -i tests/smoke/niwot/sipnet.in --quiet --file-prefix ""and confirmed[ERROR ] filePrefix must be set for SIPNET to runremains visible (exit code 3).Reproduction steps
Run SIPNET with conflicting or invalid configuration options using
--quiet: