From c32a958c11fd1ece8ea468146652f2a5ca8348d1 Mon Sep 17 00:00:00 2001 From: linuxdaemon Date: Sun, 12 May 2024 16:59:53 -0400 Subject: [PATCH] fix: set log options with basicConfig() --- src/gvm_sync_targets/cli/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gvm_sync_targets/cli/__init__.py b/src/gvm_sync_targets/cli/__init__.py index a097b83..7631464 100644 --- a/src/gvm_sync_targets/cli/__init__.py +++ b/src/gvm_sync_targets/cli/__init__.py @@ -36,7 +36,7 @@ def gvm_sync_targets( username: str, password: str, debug: bool, hosts_file: TextIO ) -> None: if debug: - logging.getLogger().setLevel("DEBUG") + logging.basicConfig(level="DEBUG", force=True) with Gmp( DebugConnection(UnixSocketConnection()),