Skip to content

Commit

Permalink
Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nobl9-adam-szymanski committed Aug 5, 2023
1 parent c8c742d commit 0802328
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions partition_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ func (p *PartitionTable) loadMessages(ctx context.Context, cons sarama.Partition
continue
}

if msg.Topic == "anomalydetector-nodata-rules-table" {
if msg.Topic == "anomalydetector-nodata-rules" {
p.log.Debugf(
"load messages = topic=%s, partition=%v, key=%s, offset=%v, timestamp=%v",
msg.Topic,
Expand Down Expand Up @@ -598,7 +598,7 @@ func (p *PartitionTable) updateHwmStats() {
}

func (p *PartitionTable) storeEvent(key string, value []byte, offset int64, headers []*sarama.RecordHeader) error {
if p.topic == "anomalydetector-nodata-rules-table" {
if p.topic == "anomalydetector-nodata-rules" {
p.log.Debugf(
"store event = topic=%s, partition=%v, key=%s, offset=%v",
p.topic,
Expand Down
20 changes: 10 additions & 10 deletions processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -823,16 +823,16 @@ func (g *Processor) ConsumeClaim(session sarama.ConsumerGroupSession, claim sara
headers: msg.Headers,
value: msg.Value,
}
//if msg.Topic == "anomalydetector-nodata-rules-table" {
// g.log.Debugf(
// "topic=%s, partition=%v, key=%s, offset=%v, timestamp=%v, value=%v",
// msg.Topic,
// msg.Partition,
// string(msg.Key),
// msg.Offset,
// msg.Timestamp,
// )
//}
if msg.Topic == "anomalydetector-nodata-rules" {
g.log.Debugf(
"consume claim - topic=%s, partition=%v, key=%s, offset=%v, timestamp=%v, value=%v",
msg.Topic,
msg.Partition,
string(msg.Key),
msg.Offset,
msg.Timestamp,
)
}
return m
}():
case <-stopping:
Expand Down

0 comments on commit 0802328

Please sign in to comment.