Skip to content

Commit

Permalink
Added MQTT error code -5 to the list of known errors
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickBaus committed Jan 17, 2024
1 parent b3ee53d commit 4ae81bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ def _log_mqtt_error_code(self, worker_name: str, error_code: str | int, previous
self.__host,
self.__port,
)
elif error_code == -5:
self.__logger.error(
"Worker (%s): Unknown host name of MQTT server (%s:%i). Retrying.",
worker_name,
self.__host,
self.__port,
)
elif error_code == "timed out":
self.__logger.error(
"Worker (%s): The connection to MQTT server (%s:%i) timed out. Retrying.",
Expand Down

0 comments on commit 4ae81bc

Please sign in to comment.