chore: update

This commit is contained in:
henry.chen
2025-07-16 19:57:39 +08:00
parent 8fcabd5e15
commit a0b41d08bd
9 changed files with 47 additions and 50 deletions

View File

@@ -30,7 +30,7 @@ func init() {
// run mode
mode := config.RunMode(os.Getenv("RUN_MODE"))
if !mode.IsRunMode() {
panic("config: unsupported env RUN_MODE" + mode)
panic("config: unsupported env RUN_MODE: " + mode)
}
logrus.Infof("Run mode:%s", mode)
@@ -39,8 +39,8 @@ func init() {
if err != nil {
panic(err)
}
path := filepath.Join(dir, "etc", "app.yml")
data, err := os.ReadFile(path)
if err != nil {
panic(err)