mirror of
https://github.com/meshtastic/python.git
synced 2026-02-20 07:36:28 -05:00
Merge pull request #532 from ianmcorvidae/listen-enables-debug
When `--listen` is set, turn on debug-level logging
This commit is contained in:
@@ -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",
|
||||
)
|
||||
|
||||
@@ -1367,7 +1367,7 @@ def initParser():
|
||||
|
||||
parser.add_argument(
|
||||
"--listen",
|
||||
help="Just stay open and listen to the protobuf stream.",
|
||||
help="Just stay open and listen to the protobuf stream. Enables debug logging.",
|
||||
action="store_true",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user