add back the default setting values and fix #739 (#1093) (#1098)

release/v1.0
Lunny Xiao 7 years ago committed by GitHub
parent e2c8d6fcb2
commit 3d1ff149a2

@ -284,7 +284,9 @@ var (
RunAtStart bool RunAtStart bool
Schedule string Schedule string
}{ }{
Schedule: "@every 10m", Enabled: true,
RunAtStart: false,
Schedule: "@every 10m",
}, },
RepoHealthCheck: struct { RepoHealthCheck: struct {
Enabled bool Enabled bool
@ -293,15 +295,18 @@ var (
Timeout time.Duration Timeout time.Duration
Args []string `delim:" "` Args []string `delim:" "`
}{ }{
Schedule: "@every 24h", Enabled: true,
Timeout: 60 * time.Second, RunAtStart: false,
Args: []string{}, Schedule: "@every 24h",
Timeout: 60 * time.Second,
Args: []string{},
}, },
CheckRepoStats: struct { CheckRepoStats: struct {
Enabled bool Enabled bool
RunAtStart bool RunAtStart bool
Schedule string Schedule string
}{ }{
Enabled: true,
RunAtStart: true, RunAtStart: true,
Schedule: "@every 24h", Schedule: "@every 24h",
}, },
@ -767,11 +772,11 @@ func newLogService() {
useConsole := false useConsole := false
for _, mode := range LogModes { for _, mode := range LogModes {
if mode == "console" { if mode == "console" {
useConsole = true useConsole = true
} }
} }
if (!useConsole) { if !useConsole {
log.DelLogger("console") log.DelLogger("console")
} }

Loading…
Cancel
Save