From b000bcfaf523b76359c1726c80a41c20ddaf4579 Mon Sep 17 00:00:00 2001 From: zwwhdls Date: Tue, 7 Nov 2023 22:24:47 +0800 Subject: [PATCH] del useless log Signed-off-by: zwwhdls --- pkg/plugin/buildin/summary.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/plugin/buildin/summary.go b/pkg/plugin/buildin/summary.go index 71311579..b5528f32 100644 --- a/pkg/plugin/buildin/summary.go +++ b/pkg/plugin/buildin/summary.go @@ -63,9 +63,8 @@ func (i *SummaryPlugin) Run(ctx context.Context, request *pluginapi.Request) (*p buf.WriteString("\n") } - doc := buf.String() - i.log.Infow("get docs", "length", buf.Len(), "entryId", request.EntryId, "docs", doc) - summary, err := friday.SummaryFile(fmt.Sprintf("entry_%d", request.EntryId), doc) + i.log.Infow("get docs", "length", buf.Len(), "entryId", request.EntryId) + summary, err := friday.SummaryFile(fmt.Sprintf("entry_%d", request.EntryId), buf.String()) if err != nil { return pluginapi.NewFailedResponse(fmt.Sprintf("summary documents failed: %s", err)), nil }