Skip to content

Commit 1d66e67

Browse files
committed
Using logging for probes messages
1 parent 32a584f commit 1d66e67

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def create_app() -> Quart:
4545
return app
4646

4747
def liveness():
48-
print("Alive!")
48+
logging.debug("Alive!")
4949
pass
5050

5151
def readiness():
@@ -74,10 +74,11 @@ def readiness():
7474
raise HealthError(f"Error checking for library table: {e}")
7575
# Optionally, you might want to raise this error
7676
# raise
77-
print("Ready!")
77+
logging.debug("Ready!")
7878
except Exception:
7979
raise HealthError(f"Failed to connect to the database! {app.config['POSTGRESQL_DATABASE_URI']}")
8080

8181
app = create_app()
82+
8283
print(f"Running app...")
8384
#asyncio.run(serve(app, config), debug=True)

0 commit comments

Comments
 (0)