Skip to content

Commit

Permalink
fixing logging bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidsec committed Oct 23, 2024
1 parent 2b2f9ab commit 94a9ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bbot/test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from bbot.core.helpers.misc import execute_sync_or_async
from bbot.core.helpers.interactsh import server_list as interactsh_servers

root_logger = logging.getLogger()

test_config = OmegaConf.load(Path(__file__).parent / "test.conf")
if test_config.get("debug", False):
Expand All @@ -21,7 +22,6 @@
CORE.logger.log_level = logging.DEBUG
else:
# silence stdout + trace
root_logger = logging.getLogger()
for h in root_logger.handlers:
h.addFilter(lambda x: x.levelname not in ("STDOUT", "TRACE"))

Expand Down

0 comments on commit 94a9ed9

Please sign in to comment.