1
1
mirror of https://github.com/cooperspencer/gickup synced 2024-10-18 07:38:08 +02:00

move deprecation notice, no need to spam

This commit is contained in:
Andreas Wachter 2024-04-12 13:14:56 +02:00
parent 0b32890b8c
commit e78eb4e870
2 changed files with 6 additions and 4 deletions

@ -52,10 +52,6 @@ func Backup(r types.Repo, d types.GenRepo, dry bool) bool {
mirrorInterval := "8h0m0s"
if d.MirrorInterval != "" {
sub.Warn().Msg("mirrorinterval is deprecated and will be removed in one of the next releases. please move it under the mirror parameter.")
}
if d.MirrorInterval != "" {
mirrorInterval = d.MirrorInterval
}

@ -184,6 +184,12 @@ func backup(repos []types.Repo, conf *types.Conf) {
}
for _, d := range conf.Destination.Gitea {
if d.MirrorInterval != "" {
log.Warn().
Str("stage", "gitea").
Str("url", d.URL).
Msg("mirrorinterval is deprecated and will be removed in one of the next releases. please move it under the mirror parameter.")
}
if !strings.HasSuffix(r.Name, ".wiki") {
repotime := time.Now()
status := 0