mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
fix: log added and minor fixes applied
Signed-off-by: Mujib Ahasan <ahasanmujib8@gmail.com>
This commit is contained in:
@@ -21,7 +21,7 @@ type ScanQueryParams struct {
|
||||
// Do not delete results after returning (relevant only for synchronous requests)
|
||||
// default: false
|
||||
KeepResults bool `schema:"keep" json:"keep"`
|
||||
// Donot persist data after scanning
|
||||
// Do not persist data after scanning
|
||||
//default: false
|
||||
SkipPersistence bool `schema:"skipPersistence" json:"skipPersistence"`
|
||||
}
|
||||
|
||||
@@ -99,6 +99,8 @@ func scan(ctx context.Context, scanInfo *cautils.ScanInfo, scanID string, skipPe
|
||||
} else {
|
||||
logger.L().Debug("storage is not initialized - skipping storing results")
|
||||
}
|
||||
} else {
|
||||
logger.L().Info("skipPersistence=true, skipping storing results")
|
||||
}
|
||||
|
||||
return nil, nil
|
||||
|
||||
Reference in New Issue
Block a user