1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00
This commit is contained in:
Jan Pochyla 2016-04-29 22:01:04 +02:00 committed by Pavol Rusnak
parent ac28a41d96
commit 29e20e302a
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 6 additions and 6 deletions

View File

@ -28,16 +28,16 @@ def _log(name, mlevel, msg, *args):
print(fmt % ((utime.ticks_us(), name, _leveldict[mlevel][0]) + args), file=sys.stderr)
def debug(name, msg, *args):
_log(DEBUG, msg, *args)
_log(name, DEBUG, msg, *args)
def info(name, msg, *args):
_log(INFO, msg, *args)
_log(name, INFO, msg, *args)
def warning(name, msg, *args):
_log(WARNING, msg, *args)
_log(name, WARNING, msg, *args)
def error(name, msg, *args):
_log(ERROR, msg, *args)
_log(name, ERROR, msg, *args)
def critical(name, msg, *args):
_log(CRITICAL, msg, *args)
_log(name, CRITICAL, msg, *args)

View File

@ -46,7 +46,7 @@ def __wait_for_event(timeout_us):
def __call_at(time, gen, *args):
if __debug__:
log.debug("Scheduling %s", (time, gen, args))
log.debug(__name__, 'Scheduling %s %s %s', time, gen, args)
if not time:
time = utime.ticks_us()