Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Also output the exception when the Redis ping fails

Trenton Holmesefcfecca103e
diff --git a/docker/wait-for-redis.py b/docker/wait-for-redis.py
index 292450352..8ceae1ba9 100755
--- a/docker/wait-for-redis.py
+++ b/docker/wait-for-redis.py
@@ -26,9 +26,11 @@ if __name__ == "__main__":
try:
client.ping()
break
- except Exception:
+ except Exception as e:
print(
- f"Redis ping #{attempt} failed, waiting {RETRY_SLEEP_SECONDS}s",
+ f"Redis ping #{attempt} failed.\n"
+ f"Error: {str(e)}.\n"
+ f"Waiting {RETRY_SLEEP_SECONDS}s",
flush=True,
)
time.sleep(RETRY_SLEEP_SECONDS)