Moving the debug log at the proper place.

If we don't do this, we might get the following in the logs:

  2014-04-08 20:00:59,354 - DEBUG: Section 'r' matches
  2014-04-08 20:00:59,354 - DEBUG: Section 'r' does not match

which is a bit confusing.
This commit is contained in:
Julien Miotte 2014-04-08 23:39:56 +02:00
parent d053257643
commit 6677dbcdc9

View File

@ -87,6 +87,7 @@ def _read_from_sections(user, collection, permission):
log.LOGGER.debug("Section '%s' matches" % section) log.LOGGER.debug("Section '%s' matches" % section)
if permission in regex.get(section, "permission"): if permission in regex.get(section, "permission"):
return True return True
else:
log.LOGGER.debug("Section '%s' does not match" % section) log.LOGGER.debug("Section '%s' does not match" % section)
return False return False