From 523a855238203d9eedc9196ff4f784dcb0cf1eb7 Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Sat, 30 Mar 2024 11:04:25 -0700 Subject: [PATCH] When `--listen` is set, turn on debug-level logging as though `--debug` was, even if it wasn't explicitly provided Fixes #513 --- meshtastic/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/__main__.py b/meshtastic/__main__.py index 5671717..31c40cd 100644 --- a/meshtastic/__main__.py +++ b/meshtastic/__main__.py @@ -919,7 +919,7 @@ def common(): args = our_globals.get_args() parser = our_globals.get_parser() logging.basicConfig( - level=logging.DEBUG if args.debug else logging.INFO, + level=logging.DEBUG if (args.debug or args.listen) else logging.INFO, format="%(levelname)s file:%(filename)s %(funcName)s line:%(lineno)s %(message)s", )