fix srv key to lower
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user