git-svn-id: http://svn.brehm-online.com/svn/my-stuff/python/PyLogrotate/trunk@267
ec8d2aa5-1599-4edb-8739-
2b3a1bc399aa
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)
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: