Skip to content

Commit

Permalink
remove logging to file in forward model
Browse files Browse the repository at this point in the history
  • Loading branch information
JHolba committed Aug 30, 2023
1 parent 3099480 commit 38856e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ert/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ def forward_model_ok_for_job_queue( # pylint: disable=too-many-arguments
response_configs: Dict[str, ResponseConfig],
) -> LoadResult:
from ert.storage import EnsembleAccessor, StorageAccessor
for handler in logger.handlers:
if isinstance(handler, logging.FileHandler):
logger.removeHandler(handler)

if refcase_file:
refcase = EnsembleConfig.load_refcase(refcase_file)
Expand Down

0 comments on commit 38856e4

Please sign in to comment.