Revision c9e378c7
b/snf-astakos-app/astakos/im/functions.py | ||
---|---|---|
67 | 67 |
user = request.user |
68 | 68 |
email = user.email if user and user.is_authenticated() else '' |
69 | 69 |
r = func(*args, **kwargs) |
70 |
logger._log(LOGGING_LEVEL, msg % email, []) |
|
70 |
if LOGGING_LEVEL: |
|
71 |
logger._log(LOGGING_LEVEL, msg % email, []) |
|
71 | 72 |
return r |
72 | 73 |
return with_logging |
73 | 74 |
|
b/snf-astakos-app/astakos/im/settings.py | ||
---|---|---|
83 | 83 |
# Set the expiration time (in days) of email change requests |
84 | 84 |
EMAILCHANGE_ACTIVATION_DAYS = getattr(settings, 'ASTAKOS_EMAILCHANGE_ACTIVATION_DAYS', 10) |
85 | 85 |
|
86 |
# Set the astakos message logging severity
|
|
86 |
# Set the astakos main functions logging severity (None to disable)
|
|
87 | 87 |
from logging import INFO |
88 | 88 |
LOGGING_LEVEL = getattr(settings, 'ASTAKOS_LOGGING_LEVEL', INFO) |
Also available in: Unified diff