simplify init logging

This commit is contained in:
skiffer-git
2022-12-14 14:15:53 +08:00
parent 13b2aa675f
commit 46ee4e41a1
3 changed files with 18 additions and 71 deletions
+1 -1
View File
@@ -648,7 +648,7 @@ func unmarshalConfig(config interface{}, configName string) {
} else {
bytes, err := ioutil.ReadFile(fmt.Sprintf("../config/%s", configName))
if err != nil {
panic(err.Error())
panic(err.Error() + configName)
}
if err = yaml.Unmarshal(bytes, config); err != nil {
panic(err.Error())