mirror of
https://github.com/meshtastic/python.git
synced 2025-12-28 10:27:54 -05:00
When --listen is set, turn on debug-level logging as though --debug was, even if it wasn't explicitly provided
Fixes #513
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",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user