Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5129b33

Browse files
committed
Only log the traceback for non-404s
Change-Id: I08ba4a3120e99b444b13f1ca6f5493529868df26
1 parent 553e34e commit 5129b33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swiftclient/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,8 +1036,8 @@ def _list_container_job(conn, container, options, result_queue):
10361036
version_marker = items[-1].get('version_id', '')
10371037
except ClientException as err:
10381038
traceback, err_time = report_traceback()
1039-
logger.exception(err)
10401039
if err.http_status != 404:
1040+
logger.exception(err)
10411041
error = (err, traceback, err_time)
10421042
else:
10431043
error = (

0 commit comments

Comments
 (0)