From 285b1e8243eadd72a58437b7c2b5bb75b7db5357 Mon Sep 17 00:00:00 2001 From: Gordon <46924906+FGadvancer@users.noreply.github.com> Date: Mon, 15 Apr 2024 10:29:24 +0800 Subject: [PATCH] refactor: cmd update. --- pkg/common/config/load_config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/common/config/load_config.go b/pkg/common/config/load_config.go index 4101b0b25..a5f4df664 100644 --- a/pkg/common/config/load_config.go +++ b/pkg/common/config/load_config.go @@ -1,8 +1,10 @@ package config import ( + "context" "github.com/mitchellh/mapstructure" "github.com/openimsdk/tools/errs" + "github.com/openimsdk/tools/log" "github.com/spf13/viper" "strings" ) @@ -23,6 +25,6 @@ func LoadConfig(path string, envPrefix string, config any) error { }); err != nil { return errs.WrapMsg(err, "failed to unmarshal config", "path", path, "envPrefix", envPrefix) } - + log.CInfo(context.Background(), "Load config success", "path", path, "envPrefix", envPrefix, "config", config) return nil }