From c02f753878dba3bf1f82aea5e723c2fb93bad822 Mon Sep 17 00:00:00 2001 From: Richard Neumann Date: Sat, 26 Dec 2020 17:27:49 +0100 Subject: [PATCH] Refac. --- rcon/rconclt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rcon/rconclt.py b/rcon/rconclt.py index c10023c..e73331e 100644 --- a/rcon/rconclt.py +++ b/rcon/rconclt.py @@ -71,8 +71,7 @@ def main() -> None: """Runs the RCON client.""" args = get_args() - log_level = DEBUG if args.debug else INFO - basicConfig(level=log_level, format=LOG_FORMAT) + basicConfig(format=LOG_FORMAT, level=DEBUG if args.debug else INFO) host, port, passwd = get_credentials(args) with ErrorHandler(ERRORS, LOGGER):