From 10ab70080ad4f8b741a481dc68d5d90c00426913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=97=AA=D1=94=CE=BD=CE=B9=CE=B7=20=E1=97=B7=CF=85=D0=BD?= =?UTF-8?q?=CA=9F?= Date: Tue, 24 Aug 2021 08:59:31 -0400 Subject: [PATCH] fix: consistent error logging to mqtt connection issues (#1578) --- frigate/mqtt.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frigate/mqtt.py b/frigate/mqtt.py index 78b6590a9..dd34cd2b0 100644 --- a/frigate/mqtt.py +++ b/frigate/mqtt.py @@ -96,14 +96,14 @@ def create_mqtt_client(config: FrigateConfig, camera_metrics): threading.current_thread().name = "mqtt" if rc != 0: if rc == 3: - logger.error("MQTT Server unavailable") + logger.error("Unable to connect to MQTT server: MQTT Server unavailable") elif rc == 4: - logger.error("MQTT Bad username or password") + logger.error("Unable to connect to MQTT server: MQTT Bad username or password") elif rc == 5: - logger.error("MQTT Not authorized") + logger.error("Unable to connect to MQTT server: MQTT Not authorized") else: logger.error( - "Unable to connect to MQTT: Connection refused. Error code: " + "Unable to connect to MQTT server: Connection refused. Error code: " + str(rc) )