Skip to content

Commit f07434f

Browse files
committed
logging: Allow logging.exception helper to handle tracebacks.
Signed-off-by: Nick Budak <[email protected]>
1 parent aad2e48 commit f07434f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python-stdlib/logging/logging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ def critical(msg, *args):
202202
getLogger().critical(msg, *args)
203203

204204

205-
def exception(msg, *args):
206-
getLogger().exception(msg, *args)
205+
def exception(msg, *args, **kwargs):
206+
getLogger().exception(msg, *args, **kwargs)
207207

208208

209209
def shutdown():

0 commit comments

Comments
 (0)