Skip to content

Commit

Permalink
添加用于debug的log记录
Browse files Browse the repository at this point in the history
  • Loading branch information
universero authored Aug 28, 2024
1 parent 960b98b commit 05e7e3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions service/insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"github.com/xh-polaris/service-idl-gen-go/kitex_gen/platform/data"
"github.com/xh-polaris/gopkg/util/log"
"platform-data/domain"
"strings"
)
Expand Down Expand Up @@ -38,6 +39,8 @@ func (server *InsertServer) Insert(_ context.Context, req *data.InsertReq) (bool

content = append(content, '\n')

log.Info("%s : %s\n", string(meta), content)

buf.Write(meta)
buf.Write(content)
}
Expand Down

0 comments on commit 05e7e3d

Please sign in to comment.