Skip to content

Commit 218e9b9

Browse files
authored
Merge pull request #532 from ianmcorvidae/listen-enables-debug
When `--listen` is set, turn on debug-level logging
2 parents 896eeff + 917d6b2 commit 218e9b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

meshtastic/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ def common():
919919
args = our_globals.get_args()
920920
parser = our_globals.get_parser()
921921
logging.basicConfig(
922-
level=logging.DEBUG if args.debug else logging.INFO,
922+
level=logging.DEBUG if (args.debug or args.listen) else logging.INFO,
923923
format="%(levelname)s file:%(filename)s %(funcName)s line:%(lineno)s %(message)s",
924924
)
925925

@@ -1367,7 +1367,7 @@ def initParser():
13671367

13681368
parser.add_argument(
13691369
"--listen",
1370-
help="Just stay open and listen to the protobuf stream.",
1370+
help="Just stay open and listen to the protobuf stream. Enables debug logging.",
13711371
action="store_true",
13721372
)
13731373

0 commit comments

Comments
 (0)