1
0

feat: lower debug level

This commit is contained in:
dump_stack() 2023-05-15 15:35:48 +00:00
parent 3e64c99b1c
commit 7c2957dafb
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -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
}
}