Use logger rather than print for these messages.

This commit is contained in:
Ahmed Charles 2015-10-19 03:12:18 +00:00 committed by Griatch
parent 3357712103
commit c8fbd2860d
4 changed files with 15 additions and 12 deletions

View file

@ -23,6 +23,7 @@ from twisted.internet import threads, defer, reactor
from django.conf import settings
from django.utils import timezone
from django.utils.translation import ugettext as _
from evennia.utils import logger
_MULTIMATCH_SEPARATOR = settings.SEARCH_MULTIMATCH_SEPARATOR
@ -870,7 +871,7 @@ def check_evennia_dependencies():
errstring = errstring.strip()
if errstring:
mlen = max(len(line) for line in errstring.split("\n"))
print("%s\n%s\n%s" % ("-"*mlen, errstring, '-'*mlen))
logger.log_err("%s\n%s\n%s" % ("-"*mlen, errstring, '-'*mlen))
return not_error