diff --git a/ietf/utils/log.py b/ietf/utils/log.py index e74b27908..b4c27d85f 100644 --- a/ietf/utils/log.py +++ b/ietf/utils/log.py @@ -2,7 +2,7 @@ import syslog import inspect import os.path import ietf -from settings import BASE_DIR +from django.conf import settings syslog.openlog("django", syslog.LOG_PID, syslog.LOG_USER) @@ -23,11 +23,11 @@ def getcaller(): def log(msg): mod, cls, func, file, line = getcaller() file = os.path.abspath(file) - file = file.replace(BASE_DIR, "") + file = file.replace(settings.BASE_DIR, "") if func == "": where = "" else: where = " in " + func + "()" syslog.syslog("ietf%s(%d)%s: %s" % (file, line, where, msg)) -log("IETFdb v%s started" % ietf.__version__) \ No newline at end of file +log("IETFdb v%s started" % ietf.__version__)