added if condition check to not echo DB_URL (#1681)

This commit is contained in:
Shashank Tiwari 2023-08-26 02:41:44 +05:30 committed by GitHub
parent 12e516da64
commit b02afc326e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,9 +238,10 @@ class Config(Base):
# If the env var is set, override the config value.
if env_var is not None:
console.info(
f"Overriding config value {key} with env var {key.upper()}={env_var}"
)
if key.upper() != "DB_URL":
console.info(
f"Overriding config value {key} with env var {key.upper()}={env_var}"
)
# Convert the env var to the expected type.
try: