Skip to content

Commit

Permalink
chore: add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
xzchaoo committed Jan 23, 2024
1 parent 0fd735b commit 95a662b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/collectconfig/executor/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,14 @@ func (c *Consumer) Consume(resp *logstream.ReadResponse, iw *inputWrapper, err e
zap.Int("cost", int(resp.IOCost()/time.Millisecond)), //
zap.Error(err), //
)
for _, line := range resp.Lines {
logger.Debugz("[consumer] [log] debug input", zap.String("key", c.key), zap.String("line", line))
}
for _, g := range resp.LogGroups {
for _, log := range g.Logs {
logger.Debugz("[consumer] [log] debug input", zap.String("key", c.key), zap.Any("contents", log.Contents))
}
}
}
}

Expand Down

0 comments on commit 95a662b

Please sign in to comment.