From bd2c50dadfa675223d3d889b0c2b827007f9b781 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Fri, 13 May 2011 22:26:53 +0200 Subject: [PATCH] Log user login instead of calendar owner for sucessful accesses --- radicale/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index 9306443..024524b 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -186,7 +186,7 @@ class Application(object): user = password = None if self.acl.has_right(calendar.owner, user, password): - log.LOGGER.info("%s allowed" % calendar.owner) + log.LOGGER.info("%s allowed" % (user or "anonymous user")) status, headers, answer = function(environ, calendar, content) else: log.LOGGER.info("%s refused" % (user or "anonymous user"))