Add missing log_file parameter in test config file

darcs-hash:20071204071226-86b55-7641b17e04288678b5dc8eb5b271680e69c87fa3.gz
This commit is contained in:
David Rousselie
2007-12-04 08:12:26 +01:00
parent 86764c25c8
commit 36c21002b4
2 changed files with 1 additions and 3 deletions

View File

@@ -155,10 +155,8 @@ class JCLRunner(object):
self.__apply_configfile(commandline_args, cleanopts) self.__apply_configfile(commandline_args, cleanopts)
self.__apply_commandline_args(commandline_args, cleanopts) self.__apply_commandline_args(commandline_args, cleanopts)
if self.log_stdout: if self.log_stdout:
print "Logging to stdout"
self.logger.addHandler(logging.StreamHandler()) self.logger.addHandler(logging.StreamHandler())
if self.log_file is not None: if self.log_file is not None:
print "Logging to file " + self.log_file
self.logger.addHandler(logging.FileHandler(self.log_file)) self.logger.addHandler(logging.FileHandler(self.log_file))
def _get_help(self): def _get_help(self):

View File

@@ -17,5 +17,5 @@ db_url: %(type)s://%(host)s%(name)s
[component] [component]
pid_file: /var/run/jabber/test_jcl.pid pid_file: /var/run/jabber/test_jcl.pid
log_file: /tmp/jcl.log