BF: Avoid setting of log encoding for systemd backend

pull/224/head
Steven Hiscocks 2013-05-10 10:27:26 +01:00
parent 7751f4ad5a
commit e584ab66ac
1 changed files with 7 additions and 3 deletions

View File

@ -177,7 +177,7 @@ class Server:
def delLogPath(self, name, fileName): def delLogPath(self, name, fileName):
filter_ = self.__jails.getFilter(name) filter_ = self.__jails.getFilter(name)
if isinstance(filter_, FileFilter): if isinstance(filter_, FileFilter):
self.__jails.getFilter(name).delLogPath(fileName) filter_.delLogPath(fileName)
def getLogPath(self, name): def getLogPath(self, name):
filter_ = self.__jails.getFilter(name) filter_ = self.__jails.getFilter(name)
@ -207,10 +207,14 @@ class Server:
return [] return []
def setLogEncoding(self, name, encoding): def setLogEncoding(self, name, encoding):
return self.__jails.getFilter(name).setLogEncoding(encoding) filter_ = self.__jails.getFilter(name)
if isinstance(filter_, FileFilter):
filter_.setLogEncoding(encoding)
def getLogEncoding(self, name): def getLogEncoding(self, name):
return self.__jails.getFilter(name).getLogEncoding() filter_ = self.__jails.getFilter(name)
if isinstance(filter_, FileFilter):
return filter_.getLogEncoding()
def setFindTime(self, name, value): def setFindTime(self, name, value):
self.__jails.getFilter(name).setFindTime(value) self.__jails.getFilter(name).setFindTime(value)