Skip to content

Commit

Permalink
add more kvp pairs to error
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav committed Jan 23, 2024
1 parent 9af37d8 commit bab3f04
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/gitparse/gitparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,14 @@ func (c *Parser) FromReader(ctx context.Context, stdOut io.Reader, commitChan ch
// If there is a currentCommit, send it to the channel.
if currentCommit != nil {
if err := currentDiff.finalize(); err != nil {
ctx.Logger().Error(err, "failed to finalize diff")
ctx.Logger().Error(
err,
"failed to finalize diff",
"commit", currentCommit.Hash,
"diff", currentDiff.PathB,
"size", currentDiff.Len(),
"latest_state", latestState.String(),
)
}
commitChan <- *currentCommit
totalLogSize += currentCommit.Size
Expand Down

0 comments on commit bab3f04

Please sign in to comment.