From 70aa629ae7b1a21a4de099dfadc7845e80aeeb25 Mon Sep 17 00:00:00 2001 From: guillep2k <18600385+guillep2k@users.noreply.github.com> Date: Sun, 2 Feb 2020 13:20:20 -0300 Subject: [PATCH] Add warning when using relative path to app.ini (#10104) Co-authored-by: Lauris BH --- modules/setting/setting.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 4183c203ed..714015c475 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -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) } }