Skip to content

Commit 70aa629

Browse files
guillep2klafriks
andauthored
Add warning when using relative path to app.ini (#10104)
Co-authored-by: Lauris BH <[email protected]>
1 parent 391e063 commit 70aa629

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/setting/setting.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ func SetCustomPathAndConf(providedCustom, providedConf, providedWorkPath string)
511511
CustomConf = path.Join(CustomPath, "conf/app.ini")
512512
} else if !filepath.IsAbs(CustomConf) {
513513
CustomConf = path.Join(CustomPath, CustomConf)
514+
log.Warn("Using 'custom' directory as relative origin for configuration file: '%s'", CustomConf)
514515
}
515516
}
516517

0 commit comments

Comments
 (0)