mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-17 01:52:02 +00:00
log: less colors
This commit is contained in:
parent
2e1a249845
commit
112893c46f
@ -24,8 +24,7 @@ color = True
|
|||||||
def _log(name, mlevel, msg, *args):
|
def _log(name, mlevel, msg, *args):
|
||||||
if __debug__ and mlevel >= level:
|
if __debug__ and mlevel >= level:
|
||||||
if color:
|
if color:
|
||||||
fmt = '%d \x1b[35m%s\x1b[0m %s \x1b[' + \
|
fmt = '%d \x1b[35m%s\x1b[0m \x1b[' + _leveldict[mlevel][1] + 'm%s\x1b[0m ' + msg
|
||||||
_leveldict[mlevel][1] + 'm' + msg + '\x1b[0m'
|
|
||||||
else:
|
else:
|
||||||
fmt = '%d %s %s ' + msg
|
fmt = '%d %s %s ' + msg
|
||||||
print(fmt % ((utime.ticks_us(), name, _leveldict[mlevel][0]) + args))
|
print(fmt % ((utime.ticks_us(), name, _leveldict[mlevel][0]) + args))
|
||||||
|
Loading…
Reference in New Issue
Block a user