Update wait-for-psql.py

Update
This commit is contained in:
kangkan patowary 2024-09-28 20:25:16 +05:30 committed by GitHub
parent 5fb6a84274
commit ec0a315000
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,5 +28,5 @@ if __name__ == '__main__':
time.sleep(1) time.sleep(1)
if error: if error:
print("Database connection failure: %s" % error, file=sys.stderr) print(f"Database connection failure after {int(time.time() - start_time)} seconds: {error}", file=sys.stderr)
sys.exit(1) sys.exit(1)