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()),