diff options
Diffstat (limited to 'modules/doctor')
-rw-r--r-- | modules/doctor/doctor.go | 2 | ||||
-rw-r--r-- | modules/doctor/paths.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/doctor/doctor.go b/modules/doctor/doctor.go index 6451788f9d..20a32f1865 100644 --- a/modules/doctor/doctor.go +++ b/modules/doctor/doctor.go @@ -44,7 +44,7 @@ func (w *wrappedLevelLogger) Log(skip int, level log.Level, format string, v ... } func initDBDisableConsole(ctx context.Context, disableConsole bool) error { - setting.NewContext() + setting.LoadFromExisting() setting.InitDBConfig() setting.NewXORMLogService(disableConsole) diff --git a/modules/doctor/paths.go b/modules/doctor/paths.go index 88172d3150..b4eab631ba 100644 --- a/modules/doctor/paths.go +++ b/modules/doctor/paths.go @@ -67,7 +67,7 @@ func checkConfigurationFiles(logger log.Logger, autofix bool) error { return err } - setting.NewContext() + setting.LoadFromExisting() configurationFiles := []configurationFile{ {"Configuration File Path", setting.CustomConf, false, true, false}, |