From b39e121aa9204fee23fca6b56d22f887ea748d62 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 30 Jun 2011 11:52:43 +0000 Subject: [PATCH] Bugfixing git-svn-id: http://svn.brehm-online.com/svn/my-stuff/python/PyLogrotate/trunk@267 ec8d2aa5-1599-4edb-8739-2b3a1bc399aa --- LogRotateHandler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/LogRotateHandler.py b/LogRotateHandler.py index 30fb196..bcac789 100755 --- a/LogRotateHandler.py +++ b/LogRotateHandler.py @@ -754,7 +754,7 @@ class LogrotateHandler(object): else: # Moving logfile to target - msg = _("Moving file '%(from)s' => '%(to)'.") \ + msg = _("Moving file '%(from)s' => '%(to)s'.") \ % {'from': file_from, 'to': file_to } self.logger.info(msg) @@ -1087,6 +1087,9 @@ class LogrotateHandler(object): return olddir else: msg = _("No write and execute access to olddir '%s'.") % (olddir) + if self.test: + self.logger.warning(msg) + return olddir raise LogrotateHandlerError(msg) return None else: -- 2.39.5