Fixes double log output

This commit is contained in:
Ilan Steemers
2016-01-08 13:37:58 +01:00
parent a4c760c37e
commit 91bb1c69c7
2 changed files with 3 additions and 3 deletions
+1
View File
@@ -157,6 +157,7 @@ logger = logging.getLogger('django-q')
# Set up standard logging handler in case there is none
if not logger.handlers:
logger.setLevel(level=getattr(logging, Conf.LOG_LEVEL))
logger.propagate = False
formatter = logging.Formatter(fmt='%(asctime)s [Q] %(levelname)s %(message)s',
datefmt='%H:%M:%S')
handler = logging.StreamHandler()