Skip to content

Commit

Permalink
del useless log
Browse files Browse the repository at this point in the history
Signed-off-by: zwwhdls <[email protected]>
  • Loading branch information
zwwhdls committed Nov 7, 2023
1 parent 4fac94f commit b000bcf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/plugin/buildin/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b000bcf

Please sign in to comment.