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 }