Skip to content

Commit 9e377d2

Browse files
authored
Solve logging.basicConfig. (#863)
1 parent 3a05a5e commit 9e377d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymodbus/repl/client/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def main(ctx, verbose, broadcast_support, retry_on_empty,
240240
if verbose:
241241
use_format = ('%(asctime)-15s %(threadName)-15s '
242242
'%(levelname)-8s %(module)-15s:%(lineno)-8s %(message)s')
243-
_logger.basicConfig(format=use_format)
243+
logging.basicConfig(format=use_format) #NOSONAR
244244
_logger.setLevel(logging.DEBUG)
245245
ctx.obj = {
246246
"broadcast": broadcast_support,

pymodbus/repl/server/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def server(ctx, host, web_port, broadcast_support, repl, verbose):
3434
"""Server code."""
3535
FORMAT = ('%(asctime)-15s %(threadName)-15s' # pylint: disable=invalid-name
3636
' %(levelname)-8s %(module)-15s:%(lineno)-8s %(message)s')
37-
_logger.basicConfig(format=FORMAT)
37+
logging.basicConfig(format=FORMAT) #NOSONAR
3838
if verbose:
3939
_logger.setLevel(logging.DEBUG)
4040
else:

0 commit comments

Comments
 (0)