You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fmuobs: control package logger levels in default runs - #888
- Add configure_logging to set levels for fmuobs and its submodules
- Default to WARNING so INFO/DEBUG output no longer leaks in ERT hooks
- Keep stdout guard when verbose/debug is used with stdout output
- Extend workflow hook test to assert INFO/DEBUG output per mode
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Module execution leaves the converter’s own logger unconfigured, suppressing expected verbose/debug messages.
0 open findings
Previously missed (1)
In code that hasn't changed since last review
Set module logger level for verbose and debug output
src/subscript/fmuobs/fmuobs.py:309
When run via python -m subscript.fmuobs.fmuobs, logger = getLogger(__name__) creates the __main__ logger, which this list does not configure. With the default root level of WARNING, --verbose and --debug therefore suppress the converter's own INFO/DEBUG messages, although submodule messages are enabled. Restore logger.setLevel(loglevel) alongside the package logger updates to preserve module-mode logging.
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
The reason will be displayed to describe this comment to others. Learn more.
Example of new format:
2026-10-07 16:44:27,688 - subscript.fmuobs.parsers - ert_cli_simulation_thread - INFO - Injecting include file: hist_obs_wells.txt into observation file
Breaking it up makes it less sensitive to match exact order of things
The helper checks logger, level and message on the same line to assert the same thing in the new format. I also added a WARNING positive control, so the absence checks cannot pass on an empty or wrong log.
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
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.
Resolves #887
Resolves #889