-
Notifications
You must be signed in to change notification settings - Fork 104
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 the logging path when running the GUI #3772
Conversation
a51f3d2
to
9d236d8
Compare
src/ert/gui/gert_main.py
Outdated
@@ -55,7 +55,6 @@ def run_gui(args): | |||
"workflow_jobs": str(res_config.model_config.getForwardModel().joblist()) | |||
}, | |||
) | |||
|
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.
not necessary change
src/ert/logging/__init__.py
Outdated
filename, extension = os.path.splitext(filename) | ||
filename = ( | ||
f"{filename}-" | ||
f"{datetime.now().strftime(datetime.now().strftime('%Y-%m-%dT%H%M'))}" | ||
f"{extension}" | ||
) | ||
|
||
if "use_log_dir_from_env" in kwargs: |
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.
I suggest removing this line and putting a default value of False in the pop method below.
608aafd
to
55feed5
Compare
55feed5
to
cd7ebca
Compare
Jenkins: Test this please! |
Jenkins: Test this please! |
Issue
Resolves #3588
Approach
Add the logging path to the environment that is sent to the subprocess then use this in the custom file handler.
Pre review checklist
Adding labels helps the maintainers when writing release notes. This is the list of release note labels.