Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Nov 19, 2024
1 parent d60ce35 commit bfb8ec1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ def test_instance_log_to_file(mapdl, tmpdir):
file_msg_debug = "This is a debug message"

mapdl._log.log_to_file(file_path)
mapdl._log.logger.setLevel("ERROR")
for each_handler in mapdl._log.logger.handlers:
each_handler.setLevel("ERROR")

mapdl._log.error(file_msg_error)
mapdl._log.debug(file_msg_debug)
Expand Down

0 comments on commit bfb8ec1

Please sign in to comment.