Skip to content

Commit

Permalink
Merge pull request #738 from praekeltfoundation/fix-change-location
Browse files Browse the repository at this point in the history
Add log level to config
  • Loading branch information
erikh360 authored Feb 5, 2024
2 parents a686612 + 7517d98 commit 0835cba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions yal/change_preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
)
from yal.validators import age_validator

logging.basicConfig(level=config.LOG_LEVEL.upper())
logger = logging.getLogger(__name__)


Expand Down
1 change: 1 addition & 0 deletions yal/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

API_HOST = environ.get("API_HOST")
API_TOKEN = environ.get("API_TOKEN")
LOG_LEVEL = environ.get("LOG_LEVEL", "INFO")
YAL_BOT_LAUNCH_DATE = environ.get("YAL_BOT_LAUNCH_DATE", "2022-05-01")
CONTENTREPO_API_URL = environ.get("CONTENTREPO_API_URL")
CONTENTREPO_API_TOKEN = environ.get("CONTENTREPO_API_TOKEN")
Expand Down

0 comments on commit 0835cba

Please sign in to comment.