From d49776af8d81a4fab9a26badce043bcd8c5d6909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 11 May 2011 22:12:10 +0200 Subject: [PATCH] just a small logging fix so that we got 'anonymous user' in logs instead of calendar owner if user is not authenticated --- radicale/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index fd7a772a..e0a75c99 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -177,7 +177,7 @@ class Application(object): log.LOGGER.info("%s allowed" % calendar.owner) status, headers, answer = function(environ, calendar, content) else: - log.LOGGER.info("%s refused" % calendar.owner) + log.LOGGER.info("%s refused" % (user or "anonymous user")) status = client.UNAUTHORIZED headers = { "WWW-Authenticate":