Skip to content

Commit

Permalink
#34 during site build, set telegram logging
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsimpson committed Feb 16, 2022
1 parent b21a979 commit 16a6dc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ PUBLIC_KEY="/tmp/public.pem"
# Optional
TELEGRAM_TOKEN=
TELEGRAM_CHAT_ID=
TELEGRAM_PYTHON_LOG_LEVEL=ERROR
TELEGRAM_PYTHON_LOG_LEVEL="ERROR"


# Environment Settings for tests
Expand Down
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ def deploy():
envSettings["SAAS_ACTIVATE_ACCOUNT_PATH"] = app.config[
"SAAS_ACTIVATE_ACCOUNT_PATH"
]

envSettings["TELEGRAM_TOKEN"] = app.config["TELEGRAM_TOKEN"]

envSettings["TELEGRAM_CHAT_ID"] = app.config["TELEGRAM_TOKEN"]

envSettings["TELEGRAM_PYTHON_LOG_LEVEL"] = app.config[
"TELEGRAM_PYTHON_LOG_LEVEL"
]
Expand Down

0 comments on commit 16a6dc4

Please # to comment.