From 7393b30325361eb121c7b512279f0995bb36182a Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Sat, 21 May 2022 18:03:44 +0200 Subject: [PATCH] debug: log stacktrace on error while decode protobuf message --- pca9685/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pca9685/cli.py b/pca9685/cli.py index b9e5af3..a95b1ab 100644 --- a/pca9685/cli.py +++ b/pca9685/cli.py @@ -69,7 +69,7 @@ def init_mqtt_steering_client(steering_controller: actuator.PWMSteering, broker_ steering_msg.ParseFromString(msg.payload) steering_controller.run_threaded(steering_msg.Steering) 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.on_connect = on_connect @@ -97,7 +97,7 @@ def init_mqtt_throttle_client(throttle_controller: actuator.PWMThrottle, broker_ throttle_msg.ParseFromString(msg.payload) throttle_controller.run_threaded(throttle_msg.Throttle) 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.on_connect = on_connect