Skip to content

Commit

Permalink
use logging instead of print
Browse files Browse the repository at this point in the history
  • Loading branch information
gkorland committed Dec 21, 2023
1 parent 6eac7f9 commit 37c910f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/falkordb.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import os
from typing import Any

Expand All @@ -14,9 +15,9 @@ def __init__(self):

# Check if connection is successful
try:
print("FalkorDB database connected successfully!")
logging.info("FalkorDB database connected successfully!")
except ValueError as ve:
print("FalkorDB database: {}".format(ve))
logging.error("FalkorDB database: {}".format(ve))
raise

def get_graph_data(self) -> tuple[list[dict[str, Any]], list[dict[str, Any]]]:
Expand Down

0 comments on commit 37c910f

Please sign in to comment.