Skip to content

Commit 40c2908

Browse files
committed
tests: Revert loglevel to ERROR since pytest will collect them all
1 parent 794116d commit 40c2908

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_command_runner.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def log_handler(self):
7777

7878
# We need a logging unit here
7979
logger = logging.getLogger()
80-
logger.setLevel(logging.DEBUG)
80+
logger.setLevel(logging.ERROR)
8181
handler = logging.StreamHandler(sys.stdout)
82-
handler.setLevel(logging.DEBUG)
82+
handler.setLevel(logging.ERROR)
8383
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
8484
handler.setFormatter(formatter)
8585
logger.addHandler(handler)
@@ -986,8 +986,9 @@ def test_heartbeat():
986986
log_handler = tail.log_handler
987987
log_handler.setFormatter(formatter)
988988
logger.addHandler(log_handler) # Add the handler to the logger
989+
logger.setLevel(logging.ERROR)
989990

990-
exit_code, output = command_runner(
991+
exit_code, _ = command_runner(
991992
PING_CMD_10S + " -n 10", heartbeat=2, shell=False
992993
)
993994
log_contents = tail.contents()

0 commit comments

Comments
 (0)