Skip to content

Commit

Permalink
adapt settings renaming from qutip v5
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Hopf committed Jun 25, 2024
1 parent 7651e5c commit d8d650e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qutip_qtrl/logging_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_logger(name=None):
# This is nice for working with IPython, since
# it will use its own handlers instead of our StreamHandler
# below.
if settings.debug:
if settings._debug:
logging.basicConfig(level=logging.DEBUG)
else:
logging.basicConfig()
Expand All @@ -106,7 +106,7 @@ def get_logger(name=None):
# for capturing to logfiles.
logger.addHandler(logging.NullHandler())

if settings.debug:
if settings._debug:
logger.setLevel(logging.DEBUG)
else:
logger.setLevel(logging.WARN)
Expand Down

0 comments on commit d8d650e

Please sign in to comment.