logging cleanup

This commit is contained in:
Joel Wetzell
2025-12-26 10:08:24 -06:00
parent f1dff33704
commit e96913230b
17 changed files with 36 additions and 37 deletions

View File

@@ -3,7 +3,6 @@ package module
import (
"context"
"errors"
"fmt"
"log/slog"
mqtt "github.com/eclipse/paho.mqtt.golang"
@@ -101,15 +100,13 @@ func (mc *MQTTClient) Run() error {
}
<-mc.ctx.Done()
mc.logger.Debug("router context done in module")
mc.logger.Debug("done")
return nil
}
func (mc *MQTTClient) Output(payload any) error {
payloadMessage, ok := payload.(mqtt.Message)
fmt.Printf("payload type: %T\n", payload)
if !ok {
return errors.New("mqtt.client is only able to output a MQTTMessage")
}