Skip to content

Commit a4f2d56

Browse files
pfalcondpgeorge
authored andcommitted
logging: example_logging: Add testcase for exception().
1 parent b97fe09 commit a4f2d56

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

logging/example_logging.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@
88
log.error("Test message4")
99
log.critical("Test message5")
1010
logging.info("Test message6")
11+
12+
try:
13+
1/0
14+
except:
15+
log.exception("Some trouble (%s)", "expected")

0 commit comments

Comments
 (0)