Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
19
plugins/inputs/mqtt_consumer/mqtt_logger.go
Normal file
19
plugins/inputs/mqtt_consumer/mqtt_logger.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package mqtt_consumer
|
||||
|
||||
import (
|
||||
"github.com/influxdata/telegraf"
|
||||
)
|
||||
|
||||
type mqttLogger struct {
|
||||
telegraf.Logger
|
||||
}
|
||||
|
||||
// Printf implements mqtt.Logger
|
||||
func (l mqttLogger) Printf(fmt string, args ...interface{}) {
|
||||
l.Logger.Debugf(fmt, args...)
|
||||
}
|
||||
|
||||
// Println implements mqtt.Logger
|
||||
func (l mqttLogger) Println(args ...interface{}) {
|
||||
l.Logger.Debug(args...)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue