[Calypso] [PATCH 1/3] acl: Improve debugging by quoting the values
Guido Günther
agx at sigxcpu.org
Fri Apr 8 15:42:38 PDT 2016
This makes it simple to spot empty values
---
calypso/acl/htpasswd.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/calypso/acl/htpasswd.py b/calypso/acl/htpasswd.py
index 9932197..89e5ba5 100644
--- a/calypso/acl/htpasswd.py
+++ b/calypso/acl/htpasswd.py
@@ -59,7 +59,7 @@ def _sha1(hash_value, password):
def has_right(owner, user, password):
"""Check if ``user``/``password`` couple is valid."""
- log.debug("owner %s user %s", owner, user)
+ log.debug("owner '%s' user '%s'", owner, user)
for line in open(FILENAME).readlines():
if line.strip():
login, hash_value = line.strip().split(":", 1)
--
2.8.0.rc3
More information about the Calypso
mailing list