From 0bbd5004799726c7a33f5264df94aba71b16d79b Mon Sep 17 00:00:00 2001 From: Andreas Wachter Date: Tue, 26 Mar 2024 07:28:32 +0100 Subject: [PATCH] switched to sublogger --- gitea/gitea.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gitea/gitea.go b/gitea/gitea.go index d17a1b1..4bd21de 100644 --- a/gitea/gitea.go +++ b/gitea/gitea.go @@ -9,7 +9,6 @@ import ( "github.com/cooperspencer/gickup/logger" "github.com/cooperspencer/gickup/types" "github.com/rs/zerolog" - "github.com/rs/zerolog/log" ) var ( @@ -151,7 +150,7 @@ func Backup(r types.Repo, d types.GenRepo, dry bool) bool { _, err = time.ParseDuration(d.MirrorInterval) if err != nil { - log.Warn().Msgf("%s is not a valid duration!", d.MirrorInterval) + sub.Warn().Msgf("%s is not a valid duration!", d.MirrorInterval) d.MirrorInterval = repo.MirrorInterval }