Skip to content

Commit

Permalink
Don't log DB URL
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Sep 8, 2023
1 parent 0a2f215 commit ff8c03c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/diracx/db/sql_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def available_urls(cls) -> dict[str, str]:
prefixed with ``DIRACX_DB_URL_{DB_NAME}``.
"""
db_urls: dict[str, str] = {}
# TODO: rename diracx.dbs to diracx.sql_dbs
for entry_point in select_from_extension(group="diracx.dbs"):
db_name = entry_point.name
var_name = f"DIRACX_DB_URL_{entry_point.name.upper()}"
Expand All @@ -96,7 +97,7 @@ def available_urls(cls) -> dict[str, str]:
else:
db_urls[db_name] = parse_obj_as(SqlalchemyDsn, db_url)
except Exception:
logger.error("Error loading URL %s for %s", db_name, db_url)
logger.error("Error loading URL for %s", db_name)
raise
return db_urls

Expand Down

0 comments on commit ff8c03c

Please sign in to comment.