Skip to content

Commit

Permalink
fix: f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
konstan authored Jun 12, 2024
1 parent 59a43b9 commit eed448e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/notify-mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def worker(workq: multiprocessing.Queue):
try:
send_message(message_content(msg.value), msg.value.get('DESTINATION'))
except Exception as ex:
log_local.error(f'Failed sending {msg} to {msg.value.get('DESTINATION')}: {ex}')
log_local.error(f"Failed sending {msg} to {msg.value.get('DESTINATION')}: {ex}")
PROCESS_STATES.state('error - recoverable')
NOTIFICATIONS_ERROR.labels('mqtt', f'{msg.value.get("NAME") or msg.value["SUBS_NAME"]}', msg.value.get('MQTT_TOPIC'), type(ex)).inc()
continue
Expand All @@ -111,4 +111,4 @@ def worker(workq: multiprocessing.Queue):

if __name__ == "__main__":
start_http_server(prometheus_exporter_port(), registry=registry)
main(worker, KAFKA_TOPIC, KAFKA_GROUP_ID)
main(worker, KAFKA_TOPIC, KAFKA_GROUP_ID)

0 comments on commit eed448e

Please sign in to comment.