Log user login instead of calendar owner for sucessful accesses

This commit is contained in:
Guillaume Ayoub 2011-05-13 22:26:53 +02:00
parent e7ba2ab78b
commit bd2c50dadf

View File

@ -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"))