Convert print statements to logger calls

This commit is contained in:
2020-03-08 01:07:09 +00:00
parent 464db5cf28
commit 301b1603ef
6 changed files with 39 additions and 24 deletions
+1 -1
View File
@@ -30,7 +30,6 @@ SECRET_KEY = secrets.DJANGO_SECRET_KEY
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG_ENV = os.environ.get('DEBUG', False)
DEBUG = DEBUG_ENV or False
if DEBUG: print('Debug mode ON')
PRODUCTION_HOST = 'my.protospace.ca'
@@ -258,6 +257,7 @@ OLD_PASSWORD_FIELD_ENABLED = True
LOGOUT_ON_PASSWORD_CHANGE = False
ACCOUNT_PRESERVE_USERNAME_CASING = False
if DEBUG: logger.info('Debug mode ON')
logger.info('Test logging for each thread')
#import logging_tree