Skip to content

Commit

Permalink
refactor: set cplex logger name (#162)
Browse files Browse the repository at this point in the history
cplex_interface.Configuration was setting the root logger level to CRITICAL which silences most other logging output across the process.
  • Loading branch information
kvikshaug authored and KristianJensen committed May 30, 2018
1 parent d93b65e commit 0f2314b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optlang/cplex_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ class ResultsStreamHandler(StreamHandler):
def flush(self):
self.logger.debug(self.getvalue())

logger = logging.getLogger()
logger = logging.getLogger('cplex.problem')
logger.setLevel(logging.CRITICAL)
error_stream_handler = ErrorStreamHandler(logger)
warning_stream_handler = WarningStreamHandler(logger)
Expand Down

0 comments on commit 0f2314b

Please sign in to comment.