mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 23:05:42 +01:00
Also output the exception when the Redis ping fails
This commit is contained in:
parent
d0ee203265
commit
efcfecca10
1 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue