Skip to content

Commit

Permalink
Updated logs for debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
shahanneda committed Jun 10, 2024
1 parent b1d6748 commit 708d2c5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions backend/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,18 @@ def create_app(config_name):

app = Flask(__name__, template_folder="templates", static_folder="static")
# do not read config object if creating app from Flask CLI (e.g. flask db migrate)
print("right before entering config setup ")
print("type config name", type(config_name))
if type(config_name) is not ScriptInfo:
print("Right before reading config object right now!")
print("At this time the env vars are: ")
print("MG_DATABASE_URL:", os.getenv("MG_DATABASE_URL"))
print("MG_DB_NAME:", os.getenv("MG_DB_NAME"))
print("config name is", config_name)
print("app config is", app_config)
app.config.from_object(app_config[config_name])
print("Now, app.config is", app.config)
print("right after entering config setup")

app.add_url_rule(
"/graphql",
Expand Down

0 comments on commit 708d2c5

Please sign in to comment.