Skip to content

Commit

Permalink
chore: map to trace
Browse files Browse the repository at this point in the history
  • Loading branch information
mskonovalov committed Sep 16, 2024
1 parent 872d93d commit ac25c7b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugins/inputs/kinesis_consumer/kinesis_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,14 @@ func (t *TelegrafLoggerWrapper) Log(args ...interface{}) {

func (t *TelegrafLoggerWrapper) Logf(classification logging.Classification, format string, v ...interface{}) {
switch classification {
case logging.Debug:
format = "DEBUG " + format
case logging.Warn:
t.Logger.Warnf(format, v...)
format = "WARN" + format
default:
t.Logger.Tracef(format, v...)
format = "INFO " + format
}
t.Logger.Tracef(format, v...)
}

func (k *KinesisConsumer) connect(ac telegraf.Accumulator) error {
Expand Down

0 comments on commit ac25c7b

Please sign in to comment.