Update ping.py to only print the hostname of the target database (#2125)

* Update ping.py to only print the hostname of the target database
This commit is contained in:
Kevin Chung
2022-05-22 10:50:01 -04:00
committed by GitHub
parent 6d74c1c426
commit 6eb284e4e1

View File

@@ -21,7 +21,7 @@ url.database = None
# Wait for the database server to be available
engine = create_engine(url)
print(f"Waiting for {url} to be ready")
print(f"Waiting for {url.host} to be ready")
while True:
try:
engine.raw_connection()
@@ -30,5 +30,5 @@ while True:
print(".", end="", flush=True)
time.sleep(1)
print(f"{url} is ready")
print(f"{url.host} is ready")
time.sleep(1)