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):