From 0dfd3e74509fcfcee4ba940cb8daa258a59dc725 Mon Sep 17 00:00:00 2001 From: langhuihui <178529795@qq.com> Date: Mon, 17 Jun 2024 08:42:24 +0800 Subject: [PATCH] feat: add log for config file path --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index c6bf3cf..315c0fe 100755 --- a/main.go +++ b/main.go @@ -68,6 +68,8 @@ func Run(ctx context.Context, conf any) (err error) { } if ConfigRaw, err = os.ReadFile(v); err != nil { log.Warn("read config file error:", err.Error()) + } else { + log.Info("load config file:", v) } case []byte: ConfigRaw = v