Only print extra log details in DEBUG mode 90/12390/8
authorThanh Ha <thanh.ha@linuxfoundation.org>
Sat, 25 Aug 2018 01:04:13 +0000 (21:04 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 27 Aug 2018 22:29:09 +0000 (18:29 -0400)
commit4edf459161faeaebe1614ff16f18101f0785adc6
tree82549d4982a4245fc90aca7c5bfda1a79dac4b90
parentbf6ca83a3f20a15dd83800f3953cc3f5e449250b
Only print extra log details in DEBUG mode

This allow us to change all our print statements to log.info() and
have it still print sanely like a CLI application. Then when DEBUG
mode is enabled it will print the extra details to let us
troubleshoot. ERROR and CRITICAL logs will prefix with "ERROR: "
for example.

Change-Id: Ic35222ee654306e686052c209b641f9e49d38144
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
lftools/__init__.py
releasenotes/notes/logger-c53984ef7b1da53f.yaml [new file with mode: 0644]