mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-21 17:55:30 +01:00
ScanAll should only log an error when an error occurs (#20087)
Signed-off-by: Todd Whiteman <todd.whiteman@joyent.com> Co-authored-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
parent
aa4a142bc1
commit
06f53368cd
@ -379,7 +379,9 @@ func (bc *basicController) ScanAll(ctx context.Context, trigger string, async bo
|
||||
}
|
||||
|
||||
err = bc.startScanAll(ctx, executionID)
|
||||
log.Errorf("failed to start scan all, executionID=%d, error: %v", executionID, err)
|
||||
if err != nil {
|
||||
log.Errorf("failed to start scan all, executionID=%d, error: %v", executionID, err)
|
||||
}
|
||||
}(bc.makeCtx())
|
||||
} else {
|
||||
if err := bc.startScanAll(ctx, executionID); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user