Skip to content

Commit d2d8d65

Browse files
committed
Improve logging
Signed-off-by: Jun Duan <jun.duan.phd@outlook.com>
1 parent c405d0e commit d2d8d65

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

inference_server/launcher/launcher_pod_notifier.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ def main() -> int:
168168
if not is_inference_server_ready(api, namespace, pod_name):
169169
raise RuntimeError("inference-server container is not ready yet")
170170
inference_server_ready = True
171-
logger.info("Inference-server container is ready; starting notifier polling")
171+
logger.info(
172+
"Inference-server container is ready; starting notifier polling"
173+
)
172174

173175
signature = compute_signature(fetch_launcher_state(base_url))
174176
if signature != last_published_signature:
@@ -184,7 +186,7 @@ def main() -> int:
184186
urllib.error.HTTPError,
185187
urllib.error.URLError,
186188
) as exc:
187-
logger.warning("Notifier loop failed: %s", exc)
189+
logger.warning("Notifier failure: %s", exc)
188190
time.sleep(error_backoff)
189191
except Exception as exc:
190192
logger.exception("Unexpected notifier failure: %s", exc)

0 commit comments

Comments
 (0)