From 8697d075a859543bb02ec95546ff763608f5b219 Mon Sep 17 00:00:00 2001 From: Adarnof Date: Thu, 18 Feb 2016 19:24:03 +0000 Subject: [PATCH] Import logging to notify function --- notifications/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/notifications/__init__.py b/notifications/__init__.py index 3e095793..dedd2956 100644 --- a/notifications/__init__.py +++ b/notifications/__init__.py @@ -1,4 +1,7 @@ from .models import Notification +import logging + +logger = logging.getLogger(__name__) def notify(user, title, message=None, level='info'): notif = Notification()