From afa5111f6b1788021c3c04fc614465e6691eb698 Mon Sep 17 00:00:00 2001 From: Pavel Tatarskiy Date: Sat, 30 Nov 2024 15:11:04 +0300 Subject: [PATCH] fix bandwidth warn --- services/template/template.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/template/template.go b/services/template/template.go index e3b926b..8dbf413 100644 --- a/services/template/template.go +++ b/services/template/template.go @@ -5,7 +5,6 @@ import ( "crypto/md5" "encoding/hex" "errors" - log "github.com/sirupsen/logrus" "html/template" "os" "path/filepath" @@ -363,7 +362,7 @@ func (s *Template) ToString(c *gin.Context, obj any) (res string, err error) { } } data := s.tm.contextWrapper(c, obj, nil) - log.Infof("action template %v data: %+v", s.name, data) + //log.Infof("action template %v data: %+v", s.name, data) re, _ := s.tm.re.Instance(v, data).(render.HTML) err = re.Template.Execute(&b, re.Data) if err != nil {