diff --git a/reflect_config.go b/reflect_config.go index 6a8a95c..38aa5a5 100644 --- a/reflect_config.go +++ b/reflect_config.go @@ -8,7 +8,6 @@ import ( "time" "repositories.action2quare.com/ayo/gocommon/flagx" - "repositories.action2quare.com/ayo/gocommon/logger" ) var configfileflag = flagx.String("config", "", "") @@ -63,11 +62,8 @@ func MonitorConfig[T any](onChanged func(newconf *T)) error { func LoadConfig[T any](outptr *T) error { configfilepath := configFilePath() - logger.Println("configfilepath : ", configfilepath) content, err := os.ReadFile(configfilepath) - logger.Println("ReadFile : ", string(content)) if os.IsNotExist(err) { - logger.Println("os.IsNotExist :", err) return os.WriteFile(configfilepath, []byte("{}"), 0666) }