Skip to content

Commit f4a5583

Browse files
Merge pull request #233 from ARMmbed/opt-in-logging
Opt into debug logging
2 parents ab01d53 + 32ef2c6 commit f4a5583

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mbed_lstools/lstools_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
from .platform_database import PlatformDatabase, LOCAL_PLATFORM_DATABASE, \
3131
LOCAL_MOCKS_DATABASE
32+
mbedls_root_logger = logging.getLogger("mbedls")
33+
mbedls_root_logger.setLevel(logging.WARNING)
3234

3335
logger = logging.getLogger("mbedls.lstools_base")
3436

mbed_lstools/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def mbedls_main():
233233

234234
args = parse_cli(sys.argv[1:])
235235

236-
root_logger = logging.getLogger("")
236+
root_logger = logging.getLogger("mbedls")
237237
if args.debug:
238238
root_logger.setLevel(logging.DEBUG)
239239
else:

0 commit comments

Comments
 (0)