Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix logging so we can see what happens in the remind case
We check to see if a user has valid trips in the past 7 days before we send them a reminder (7034479). However, all the related messages are displayed using `logging.debug`. Because of the additional imports, logging is configured to WARNING, so they are never displayed. And in the case where there are no users with recent trips, this results in insufficient logging to determine what happened. - Changing the logging configuration location - Changing the log level to INFO - Bumping up some useful logs to INFO Testing done: Before the change ``` Found configuration, overriding... Activating the environment... Run trip labeling reminder... Config file not found, returning a copy of the environment variables instead... Retrieved config: {'DB_HOST': '...', 'DB_RESULT_LIMIT': None} Connecting to database URL ... WARNING:root:Push configured for app .... using platform firebase with token ... of length 152 ``` After the change ``` Found configuration, overriding... Activating the environment... Run trip labeling reminder... Config file not found, returning a copy of the environment variables instead... Retrieved config: {'DB_HOST': '...', 'DB_RESULT_LIMIT': None} Connecting to database URL ... WARNING:root:Push configured for app ... using platform firebase with token ... of length 152 INFO:root:Successfully downloaded config with version 1 for Staging environment for testing programs only and data collection URL https://openpath-stage.nrel.gov/api/ INFO:root:No users to notify in lang en ```
- Loading branch information