]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Also output the exception when the Redis ping fails 1016/head
authorTrenton Holmes <holmes.trenton@gmail.com>
Mon, 23 May 2022 22:53:47 +0000 (15:53 -0700)
committerTrenton Holmes <holmes.trenton@gmail.com>
Mon, 23 May 2022 23:53:48 +0000 (16:53 -0700)
docker/wait-for-redis.py

index 292450352678f2b48e18df6d6e08d4e871c08cd8..8ceae1ba9aaa617007a7bcdf2bdb4c24fe4309f8 100755 (executable)
@@ -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)