debug: log stacktrace on error while decode protobuf message
This commit is contained in:
parent
a442c00b36
commit
7393b30325
@ -69,7 +69,7 @@ def init_mqtt_steering_client(steering_controller: actuator.PWMSteering, broker_
|
|||||||
steering_msg.ParseFromString(msg.payload)
|
steering_msg.ParseFromString(msg.payload)
|
||||||
steering_controller.run_threaded(steering_msg.Steering)
|
steering_controller.run_threaded(steering_msg.Steering)
|
||||||
except:
|
except:
|
||||||
logger.error("unexpected error: unable to process steering, skip message")
|
logger.exception("unexpected error: unable to process steering, skip message")
|
||||||
|
|
||||||
client.username_pw_set(user, password)
|
client.username_pw_set(user, password)
|
||||||
client.on_connect = on_connect
|
client.on_connect = on_connect
|
||||||
@ -97,7 +97,7 @@ def init_mqtt_throttle_client(throttle_controller: actuator.PWMThrottle, broker_
|
|||||||
throttle_msg.ParseFromString(msg.payload)
|
throttle_msg.ParseFromString(msg.payload)
|
||||||
throttle_controller.run_threaded(throttle_msg.Throttle)
|
throttle_controller.run_threaded(throttle_msg.Throttle)
|
||||||
except:
|
except:
|
||||||
logger.error("unexpected error: unable to process throttle, skip message")
|
logger.exception("unexpected error: unable to process throttle, skip message")
|
||||||
|
|
||||||
client.username_pw_set(user, password)
|
client.username_pw_set(user, password)
|
||||||
client.on_connect = on_connect
|
client.on_connect = on_connect
|
||||||
|
Reference in New Issue
Block a user