kopia lustrzana https://github.com/micropython/micropython-lib
logging: Allow logging.exception helper to handle tracebacks.
Although `Logger.exception` supports passing exception info with `exc_info`, when you use `logging.exception` keyword arguments are not forwarded to the root logger, which makes passing `exc_info` raise `TypeError`. Signed-off-by: Nick Budak <thatbudakguy@gmail.com>pull/1020/head
rodzic
15a6233d04
commit
6e24cffe95
|
@ -202,8 +202,8 @@ def critical(msg, *args):
|
|||
getLogger().critical(msg, *args)
|
||||
|
||||
|
||||
def exception(msg, *args):
|
||||
getLogger().exception(msg, *args)
|
||||
def exception(msg, *args, exc_info=True):
|
||||
getLogger().exception(msg, *args, exc_info=exc_info)
|
||||
|
||||
|
||||
def shutdown():
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
metadata(version="0.6.1")
|
||||
metadata(version="0.6.2")
|
||||
|
||||
module("logging.py")
|
||||
|
|
Ładowanie…
Reference in New Issue