Skip to content
Snippets Groups Projects
Commit bcc429d6 authored by Marco Ciotola's avatar Marco Ciotola Committed by Ben Adida
Browse files

[logging] log only INFO if not TESTING

parent f1ce2f97
No related branches found
No related tags found
No related merge requests found
......@@ -264,12 +264,12 @@ if get_from_env('EMAIL_USE_AWS', '0') == '1':
# set up logging
import logging
logging.basicConfig(
level = logging.DEBUG,
format = '%(asctime)s %(levelname)s %(message)s'
level=logging.DEBUG if TESTING else logging.INFO,
format='%(asctime)s %(levelname)s %(message)s'
)
# set up celery
CELERY_BROKER_URL = get_from_env('CELERY_BROKER_URL', 'amqp://localhost')
if TESTING:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment