diff --git a/src/ansys/mapdl/core/mapdl_core.py b/src/ansys/mapdl/core/mapdl_core.py index 193a3b4fb5..aa71a1d014 100644 --- a/src/ansys/mapdl/core/mapdl_core.py +++ b/src/ansys/mapdl/core/mapdl_core.py @@ -1401,7 +1401,7 @@ def __init__(self, parent): def __enter__(self): self._parent()._log.debug("Entering in non-interactive mode") - if self._parent().logger.logger.level <= 10: + if self._parent().logger.logger.level <= logging.DEBUG: # only commenting if on debug mode self._parent().com("Entering in non_interactive mode") self._parent()._store_commands = True