capture_output
passed a logger
object does not capture stdout
as log messages
#3484
Labels
capture_output
passed a logger
object does not capture stdout
as log messages
#3484
Summary
While attempting to fix a completely different problem, it is clear that there is the logger buffer is not being flushed/cast correctly. Anything that would be printed to
stdout
while under a logger should get past to a LogStream and then "streamed" correctly; however, it is not.Steps to reproduce the issue
This is the test I added to
contrib.solver
that revealed the problem. It can be run locally to confirm that the behavior is not as intended.Error Message
Information on your system
Pyomo version: 6.9.0.dev0
Python version: 3.11
Operating system: MacOS (but confirmed on Linux/Win, too)
How Pyomo was installed (PyPI, conda, source): source
Solver (if applicable): ipopt
Additional information
We are delaying this fix until after the 6.9.0 release because it's been there for who knows how long and hasn't yet been reported.
The text was updated successfully, but these errors were encountered: