mirror of
https://github.com/Monibuca/engine.git
synced 2025-09-27 04:46:03 +08:00
feat: add log for config file path
This commit is contained in:
2
main.go
2
main.go
@@ -68,6 +68,8 @@ func Run(ctx context.Context, conf any) (err error) {
|
|||||||
}
|
}
|
||||||
if ConfigRaw, err = os.ReadFile(v); err != nil {
|
if ConfigRaw, err = os.ReadFile(v); err != nil {
|
||||||
log.Warn("read config file error:", err.Error())
|
log.Warn("read config file error:", err.Error())
|
||||||
|
} else {
|
||||||
|
log.Info("load config file:", v)
|
||||||
}
|
}
|
||||||
case []byte:
|
case []byte:
|
||||||
ConfigRaw = v
|
ConfigRaw = v
|
||||||
|
Reference in New Issue
Block a user