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