1702
This commit is contained in:
@@ -571,7 +571,7 @@ async def main():
|
|||||||
f"[{ts()}] ok, here i will execute\n"
|
f"[{ts()}] ok, here i will execute\n"
|
||||||
f" url: {rmq_url}\n"
|
f" url: {rmq_url}\n"
|
||||||
f" routing_key: {RMQ_ROUTING_KEY}\n"
|
f" routing_key: {RMQ_ROUTING_KEY}\n"
|
||||||
f" payload_raw: {payload_raw}\n"
|
f" payload_raw: {('\a' * 3)}{payload_raw}\n"
|
||||||
f" publish_body: {json.dumps(rmq_body, ensure_ascii=False)}"
|
f" publish_body: {json.dumps(rmq_body, ensure_ascii=False)}"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -613,7 +613,7 @@ async def main():
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
await log_status(f"[{ts()}] nb: action_last/timestamp patch error host={host!r} dev_id={dev_id!r} err={e!r}")
|
await log_status(f"[{ts()}] nb: action_last/timestamp patch error host={host!r} dev_id={dev_id!r} err={e!r}")
|
||||||
|
|
||||||
bell_prefix = "\a" * 3
|
bell_prefix = ""
|
||||||
else:
|
else:
|
||||||
# action_last != action_next -> publish
|
# action_last != action_next -> publish
|
||||||
effective_delay_ms = RMQ_DELAY_MS
|
effective_delay_ms = RMQ_DELAY_MS
|
||||||
@@ -684,7 +684,7 @@ async def main():
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
await log_status(f"[{ts()}] nb: action_last/timestamp patch error host={host!r} dev_id={dev_id!r} err={e!r}")
|
await log_status(f"[{ts()}] nb: action_last/timestamp patch error host={host!r} dev_id={dev_id!r} err={e!r}")
|
||||||
|
|
||||||
bell_prefix = "\a" * 3
|
bell_prefix = ""
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
await nb_problem(log_status, f"[{ts()}] nb: unexpected error mac={mac!r} err={e!r}")
|
await nb_problem(log_status, f"[{ts()}] nb: unexpected error mac={mac!r} err={e!r}")
|
||||||
|
|||||||
Reference in New Issue
Block a user