Kaynağa Gözat

Add warning when using relative path to app.ini (#10104)

Co-authored-by: Lauris BH <lauris@nix.lv>
tags/v1.10.5
guillep2k 4 yıl önce
ebeveyn
işleme
70aa629ae7
No account linked to committer's email address
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1
    0
      modules/setting/setting.go

+ 1
- 0
modules/setting/setting.go Dosyayı Görüntüle

@@ -511,6 +511,7 @@ func SetCustomPathAndConf(providedCustom, providedConf, providedWorkPath string)
CustomConf = path.Join(CustomPath, "conf/app.ini")
} else if !filepath.IsAbs(CustomConf) {
CustomConf = path.Join(CustomPath, CustomConf)
log.Warn("Using 'custom' directory as relative origin for configuration file: '%s'", CustomConf)
}
}


Loading…
İptal
Kaydet