-
Notifications
You must be signed in to change notification settings - Fork 559
Set LogToConsole instead of OutputFlag to handle "tee" #3716
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
Changes from 2 commits
60c44ed
a8b7a11
fda3474
e510a7d
6b8ac9d
bde9170
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -240,9 +240,9 @@ def _apply_solver(self): | |
| StaleFlagManager.mark_all_as_stale() | ||
|
|
||
| if self._tee: | ||
| self._solver_model.setParam('OutputFlag', 1) | ||
| self._solver_model.setParam('LogToConsole', 1) | ||
| else: | ||
| self._solver_model.setParam('OutputFlag', 0) | ||
| self._solver_model.setParam('LogToConsole', 0) | ||
|
||
|
|
||
| if self._keepfiles: | ||
| # Only save log file when the user wants to keep it. | ||
|
|
||
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.
Why should this be the new default ? It seems that what you want can be achieved by adding LogToConsole=1 to the params you pass in the inputs
Uh oh!
There was an error while loading. Please reload this page.
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.
No, I actually want (in this case)
LogToConsole=0, which is implied byOutputFlag=0, but the latter also disables writing to log files.But I want to be able to have all 4 combinations of console and log files for different use cases.
My understand was that the
teeoption refers to what is shown on the console, so it should not interfere with log files, whichOutputFlagdoes.