From 6677dbcdc929d61cdb91bb69f035a607b3e1afe1 Mon Sep 17 00:00:00 2001 From: Julien Miotte Date: Tue, 8 Apr 2014 23:39:56 +0200 Subject: [PATCH] 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. --- radicale/rights/regex.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/rights/regex.py b/radicale/rights/regex.py index 21a828b..200731a 100644 --- a/radicale/rights/regex.py +++ b/radicale/rights/regex.py @@ -87,7 +87,8 @@ def _read_from_sections(user, collection, permission): log.LOGGER.debug("Section '%s' matches" % section) if permission in regex.get(section, "permission"): return True - log.LOGGER.debug("Section '%s' does not match" % section) + else: + log.LOGGER.debug("Section '%s' does not match" % section) return False