kopia lustrzana https://github.com/micropython/micropython-lib
logging: example_logging: Add testcase for exception().
rodzic
b97fe09ed9
commit
a4f2d5665d
|
@ -8,3 +8,8 @@ log.warning("Test message3: %d(%s)")
|
|||
log.error("Test message4")
|
||||
log.critical("Test message5")
|
||||
logging.info("Test message6")
|
||||
|
||||
try:
|
||||
1/0
|
||||
except:
|
||||
log.exception("Some trouble (%s)", "expected")
|
||||
|
|
Ładowanie…
Reference in New Issue