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:
parent
0b32890b8c
commit
e78eb4e870
@ -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
|
||||
}
|
||||
|
6
main.go
6
main.go
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user