Browse Source

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

Co-authored-by: Lauris BH <lauris@nix.lv>
mj
guillep2k 3 years ago
committed by GitHub
parent
commit
70aa629ae7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      modules/setting/setting.go

1
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)
}
}

Loading…
Cancel
Save