From: Trenton Holmes Date: Mon, 23 May 2022 22:53:47 +0000 (-0700) Subject: Also output the exception when the Redis ping fails X-Git-Tag: v1.8.0-beta.rc1~88^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1016%2Fhead;p=thirdparty%2Fpaperless-ngx.git Also output the exception when the Redis ping fails --- diff --git a/docker/wait-for-redis.py b/docker/wait-for-redis.py index 2924503526..8ceae1ba9a 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)