From 7c2957dafb7594125a752c56217ac7c15ef9a3bf Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Mon, 15 May 2023 15:35:48 +0000 Subject: [PATCH] feat: lower debug level --- distro/debian/kernel.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/distro/debian/kernel.go b/distro/debian/kernel.go index ae000a2..7775d9b 100644 --- a/distro/debian/kernel.go +++ b/distro/debian/kernel.go @@ -270,13 +270,13 @@ func GetKernels() (kernels []DebianKernel, err error) { for i, version := range versions { // TODO move this scope to function slog := log.With().Str("version", version).Logger() - slog.Debug().Msgf("%03d/%03d", i, len(versions)) + slog.Trace().Msgf("%03d/%03d", i, len(versions)) var dk DebianKernel dk, err = c.Get(version) if err == nil && !dk.Internal.Invalid { - slog.Debug().Msgf("found in cache") + slog.Trace().Msgf("found in cache") kernels = append(kernels, dk) continue } @@ -284,7 +284,7 @@ func GetKernels() (kernels []DebianKernel, err error) { if dk.Internal.Invalid { refetch := dk.Internal.LastFetch.AddDate(0, 0, RefetchDays) if refetch.After(time.Now()) { - slog.Debug().Msgf("refetch at %v", refetch) + slog.Trace().Msgf("refetch at %v", refetch) continue } }