fix srv key to lower
This commit is contained in:
parent
4fe311b722
commit
da87dee55c
|
@ -26,7 +26,7 @@ func New(srvKey string, cfg any) {
|
|||
vars.HostName, _ = os.Hostname()
|
||||
|
||||
// 构造配置文件路径,输出配置文件信息
|
||||
cfp := fmt.Sprintf("%s_%s.yaml", srvKey, env.Runtime.Mode)
|
||||
cfp := fmt.Sprintf("%s_%s.yaml", strings.ToLower(srvKey), env.Runtime.Mode)
|
||||
cfp = filepath.Join(env.Runtime.Prefix, "etc", cfp)
|
||||
print.Info("[BSM - %s] Config File: %s", srvKey, cfp)
|
||||
|
||||
|
|
Loading…
Reference in New Issue