mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 07:40:48 -08:00
refactor: replace zap with slog (#6466)
Signed-off-by: knqyf263 <knqyf263@gmail.com> Co-authored-by: Nikita Pivkin <nikita.pivkin@smartforce.io> Co-authored-by: simar7 <1254783+simar7@users.noreply.github.com>
This commit is contained in:
@@ -49,7 +49,7 @@ func (a Artifact) Inspect(_ context.Context) (types.ArtifactReference, error) {
|
||||
if err != nil {
|
||||
return types.ArtifactReference{}, xerrors.Errorf("failed to detect SBOM format: %w", err)
|
||||
}
|
||||
log.Logger.Infof("Detected SBOM format: %s", format)
|
||||
log.Info("Detected SBOM format", log.String("format", string(format)))
|
||||
|
||||
bom, err := sbom.Decode(f, format)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user