From 766adcda509b04df0b7182edbc70316d81a757c5 Mon Sep 17 00:00:00 2001 From: System User Date: Thu, 2 Dec 2010 16:57:02 +0100 Subject: [PATCH] os.path.expanduser for logging file name --- radicale/log.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/log.py b/radicale/log.py index 8c7cc55..b188bf7 100644 --- a/radicale/log.py +++ b/radicale/log.py @@ -2,6 +2,7 @@ import sys import logging +import os from radicale import config @@ -16,7 +17,7 @@ level=LEVELS.get(config.get("logging", "level"), logging.NOTSET) logger=logging.getLogger("radicale") logger.setLevel(level=level) -handler=logging.FileHandler(config.get("logging", "file")) +handler=logging.FileHandler(os.path.expanduser(config.get("logging", "file"))) handler.setLevel(level=level) formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")