logger.exception dumps a stack trace by default
This commit is contained in:
parent
3302a96f88
commit
ad1a0e0840
1 changed files with 2 additions and 2 deletions
|
@ -73,8 +73,8 @@ class SecurityWorker(Worker):
|
|||
except PreemptedException:
|
||||
logger.info('Another worker pre-empted us for layer: %s', candidate.id)
|
||||
abt.set()
|
||||
except APIRequestFailure as arf:
|
||||
logger.exception('Security scanner service unavailable: %s', arf)
|
||||
except APIRequestFailure:
|
||||
logger.exception('Security scanner service unavailable')
|
||||
return
|
||||
|
||||
unscanned_images_gauge.Set(num_remaining)
|
||||
|
|
Reference in a new issue