From 2968428443bbe1354e079b9c83c91f99b12abf9c Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Mon, 3 Feb 2020 19:02:47 +0100 Subject: [PATCH] Fix debug logs --- arduino/arduino.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arduino/arduino.go b/arduino/arduino.go index 3973618..afbb6d3 100644 --- a/arduino/arduino.go +++ b/arduino/arduino.go @@ -107,7 +107,7 @@ func (a *Part) processChannel1(v string) { log.Debugf("channel1: %v", v) value, err := strconv.Atoi(v) if err != nil { - log.Printf("invalid value for channel1, should be an int: %v", err) + log.Errorf("invalid value for channel1, should be an int: %v", err) } if value < MinPwmAngle { value = MinPwmAngle @@ -214,7 +214,7 @@ func (a *Part) publishThrottle() { log.Errorf("unable to marshal protobuf throttle message: %v", err) return } - log.Infof("throttle channel: %v", a.throttle) + log.Debugf("throttle channel: %v", a.throttle) publish(a.client, a.throttleTopic, &throttleMessage) } @@ -228,6 +228,7 @@ func (a *Part) publishSteering() { log.Errorf("unable to marshal protobuf steering message: %v", err) return } + log.Debugf("steering channel: %v", a.steering) publish(a.client, a.steeringTopic, &steeringMessage) }