Commit 269b2df2 authored by Michal Čihař's avatar Michal Čihař

Log notifications

parent bf3a0f8f
...@@ -20,6 +20,10 @@ from weblate.lang.models import Language ...@@ -20,6 +20,10 @@ from weblate.lang.models import Language
from weblate.trans.models import Project from weblate.trans.models import Project
import weblate import weblate
import logging
logger = logging.getLogger('weblate')
class ProfileManager(models.Manager): class ProfileManager(models.Manager):
''' '''
Manager providing shortcuts for subscription queries. Manager providing shortcuts for subscription queries.
...@@ -93,6 +97,8 @@ class Profile(models.Model): ...@@ -93,6 +97,8 @@ class Profile(models.Model):
''' '''
cur_language = translation.get_language() cur_language = translation.get_language()
try: try:
logger.info('sending notification %s on %s to %s', notification, translation_obj.__unicode__(), self.user.email)
# Load user languagesubject_fmt, # Load user languagesubject_fmt,
translation.activate(self.language) translation.activate(self.language)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment