fix srv key to lower

This commit is contained in:
david.yan 2025-03-27 02:43:15 +08:00
parent 4fe311b722
commit da87dee55c
1 changed files with 1 additions and 1 deletions

View File

@ -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)