changeset 7278:4c4e1ec26e95

auth: raise log level of 'permission denied' from DEBUG to INFO (issue #243) Denying an access can be quite relevant to an administrator. A log level of INFO is more reasonable than DEBUG.
author Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
date Wed, 16 May 2018 21:19:56 +0200
parents 0cf121eae2fe
children 61f8ce5fff25
files kallithea/lib/auth.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/lib/auth.py	Sun May 06 21:30:09 2018 +0200
+++ b/kallithea/lib/auth.py	Wed May 16 21:19:56 2018 +0200
@@ -860,7 +860,7 @@
             return func(*fargs, **fkwargs)
 
         else:
-            log.debug('Permission denied for %s %s', cls, user)
+            log.info('Permission denied for %s %s', cls, user)
             if user.is_default_user:
                 raise _redirect_to_login(_('You need to be signed in to view this page'))
             else: