user = request.user
email = user.email if user and user.is_authenticated() else ''
r = func(*args, **kwargs)
- logger._log(LOGGING_LEVEL, msg % email, [])
+ if LOGGING_LEVEL:
+ logger._log(LOGGING_LEVEL, msg % email, [])
return r
return with_logging
# Set the expiration time (in days) of email change requests
EMAILCHANGE_ACTIVATION_DAYS = getattr(settings, 'ASTAKOS_EMAILCHANGE_ACTIVATION_DAYS', 10)
-# Set the astakos message logging severity
+# Set the astakos main functions logging severity (None to disable)
from logging import INFO
LOGGING_LEVEL = getattr(settings, 'ASTAKOS_LOGGING_LEVEL', INFO)
\ No newline at end of file