update log format --all replace

This commit is contained in:
engigu
2024-01-13 12:04:40 +08:00
parent c0241df60c
commit e76782451b
9 changed files with 41 additions and 37 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
package env_service
import (
"github.com/sirupsen/logrus"
"message-nest/models"
"message-nest/pkg/constant"
"message-nest/pkg/logging"
)
type EnvService struct {
@@ -18,9 +18,9 @@ func (es *EnvService) CommonAdd(section string, key string, value string) {
Value: value,
})
if err != nil {
logging.Logger.Error("初始化%s:%s失败", section, key)
logrus.Error("初始化%s:%s失败", section, key)
} else {
logging.Logger.Infof("初始化%s:%s成功", section, key)
logrus.Infof("初始化%s:%s成功", section, key)
}
}
}