Skip to content

Commit

Permalink
log on schema
Browse files Browse the repository at this point in the history
  • Loading branch information
melanie-fressard authored Nov 29, 2023
1 parent eea27c0 commit 5733ba0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testing_utils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import os
import logging
import dotenv
dotenv.load_dotenv()

def raise_error(message):
raise Exception(message)

logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)
logger.info("Connecting to " + os.getenv("LOUIS_SCHEMA"))
LOUIS_SCHEMA = os.getenv("LOUIS_SCHEMA") or raise_error("LOUIS_SCHEMA is not set")
LOUIS_DSN = os.getenv("LOUIS_DSN") or raise_error("LOUIS_DSN is not set")
MATCH_THRESHOLD = 0.5
Expand Down

0 comments on commit 5733ba0

Please sign in to comment.