fix config bug

This commit is contained in:
ston1th 2021-12-04 18:31:44 +01:00
commit 1fc3490ac4

View file

@ -75,7 +75,8 @@ func initServer(cfg *core.Config) (err error) {
log.InitLogger(cfg) log.InitLogger(cfg)
cfg.DataDir = filepath.Join(cfg.RunDir, core.DataDir) cfg.DataDir = filepath.Join(cfg.RunDir, core.DataDir)
debugCfg := cfg debugCfg := new(core.Config)
*debugCfg = *cfg
debugCfg.Secret = "***hidden***" debugCfg.Secret = "***hidden***"
log.Debugf("docstore config: %+v", debugCfg) log.Debugf("docstore config: %+v", debugCfg)