Jelajahi Sumber

Fix: debug logging in rights/from_file

Peter Bieringer 1 tahun lalu
induk
melakukan
a54fb10e17
2 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 3 0
      CHANGELOG.md
  2. 1 4
      radicale/rights/from_file.py

+ 3 - 0
CHANGELOG.md

@@ -1,5 +1,8 @@
 # Changelog
 
+## 3.3.2.dev
+* Fix: debug logging in rights/from_file
+
 ## 3.3.1
 
 * Add: option [auth] type=dovecot

+ 1 - 4
radicale/rights/from_file.py

@@ -99,12 +99,9 @@ class Rights(rights.BaseRights):
                              user, sane_path, user_pattern,
                              collection_pattern, section, permission)
                 return permission
-            logger.debug("Rule %r:%r doesn't match %r:%r from section %r",
-                         user, sane_path, user_pattern, collection_pattern,
-                         section)
             if self._log_rights_rule_doesnt_match_on_debug:
                 logger.debug("Rule %r:%r doesn't match %r:%r from section %r",
                              user, sane_path, user_pattern, collection_pattern,
                              section)
-        logger.info("Rights: %r:%r doesn't match any section", user, sane_path)
+        logger.debug("Rights: %r:%r doesn't match any section", user, sane_path)
         return ""