Skip to content

Commit 85463f9

Browse files
committed
Fix SSHClient logger: package name should be also used
1 parent edbf79d commit 85463f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

exec_helpers/_ssh_client_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ def __init__(
284284

285285
# Init super with host and real port and username
286286
super(SSHClientBase, self).__init__(
287-
logger=logging.getLogger(self.__class__.__name__).getChild(f"({real_auth.username}@{host}:{self.__port})")
287+
logger=logging.getLogger(f"{self.__module__}.{self.__class__.__name__}").getChild(
288+
f"({real_auth.username}@{host}:{self.__port})"
289+
)
288290
)
289291

290292
# Update config for target host: merge with data from credentials and parameters.

0 commit comments

Comments
 (0)