Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dbf186e

Browse files
logging: Allow logging.exception helper to handle tracebacks.
Signed-off-by: Nick Budak <thatbudakguy@gmail.com>
1 parent aad2e48 commit dbf186e

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, exc_info=True):
206+
getLogger().exception(msg, *args, exc_info=exc_info)
207207

208208

209209
def shutdown():

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /