pull/25/head
Jan Pochyla 8 years ago committed by Pavol Rusnak
parent ac28a41d96
commit 29e20e302a
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -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)

@ -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()

Loading…
Cancel
Save