로그 제거
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user