mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-09-15 12:58:34 +08:00
日志作trim处理
This commit is contained in:
parent
d6f9c30a8e
commit
90f5bd6e5a
@ -24,8 +24,8 @@ func JsonLogAddController(req *gweb.HttpRequest) *gweb.HttpResult {
|
||||
return gweb.Error500(err.Error())
|
||||
}
|
||||
|
||||
md.Text = cmn.Trim(md.Text)
|
||||
addDataModelLog(md)
|
||||
// addTextLog(md)
|
||||
|
||||
if conf.IsClusterMode() {
|
||||
go TransferGlc(md.ToJson()) // 转发其他GLC服务
|
||||
@ -55,12 +55,6 @@ func JsonLogTransferAddController(req *gweb.HttpRequest) *gweb.HttpResult {
|
||||
return gweb.Ok()
|
||||
}
|
||||
|
||||
// // 添加日志
|
||||
// func addTextLog(md *logdata.LogDataModel) {
|
||||
// engine := ldb.NewDefaultEngine()
|
||||
// engine.AddTextLog(md.Date, md.Text, md.System)
|
||||
// }
|
||||
|
||||
// 添加日志
|
||||
func addDataModelLog(data *logdata.LogDataModel) {
|
||||
engine := ldb.NewDefaultEngine()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user