From 6f4e1a87e11b3b46d2c1e31a55e482f0a0c8a4cb Mon Sep 17 00:00:00 2001 From: amal-k-soman-aot Date: Thu, 7 Nov 2024 03:30:55 -0800 Subject: [PATCH] updated code for print env --- redash/settings/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/redash/settings/__init__.py b/redash/settings/__init__.py index ac23c835f5..abb40907e3 100644 --- a/redash/settings/__init__.py +++ b/redash/settings/__init__.py @@ -34,8 +34,9 @@ DB_PORT = os.getenv("REDASH_DATABASE_PORT", "6432") DB_NAME = os.getenv("REDASH_DATABASE_NAME", "postgres") database_default_url = os.environ.get("DATABASE_URL", f"postgresql://{DB_USER}:{DB_PASSWORD}@{DB_HOST}:{DB_PORT}/{DB_NAME}") +print(database_default_url) SQLALCHEMY_DATABASE_URI = os.getenv("REDASH_DATABASE_URL", database_default_url) - +print(SQLALCHEMY_DATABASE_URI) SQLALCHEMY_MAX_OVERFLOW = int_or_none(os.environ.get("SQLALCHEMY_MAX_OVERFLOW")) SQLALCHEMY_POOL_SIZE = int_or_none(os.environ.get("SQLALCHEMY_POOL_SIZE")) SQLALCHEMY_DISABLE_POOL = parse_boolean(os.environ.get("SQLALCHEMY_DISABLE_POOL", "false"))