mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-11 10:00:48 -05:00
Also output the exception when the Redis ping fails
This commit is contained in:
parent
d0ee203265
commit
efcfecca10
@ -26,9 +26,11 @@ if __name__ == "__main__":
|
|||||||
try:
|
try:
|
||||||
client.ping()
|
client.ping()
|
||||||
break
|
break
|
||||||
except Exception:
|
except Exception as e:
|
||||||
print(
|
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,
|
flush=True,
|
||||||
)
|
)
|
||||||
time.sleep(RETRY_SLEEP_SECONDS)
|
time.sleep(RETRY_SLEEP_SECONDS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user