From 6ff620e7a26bd4da1939d8704f838332f6d816a2 Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Sun, 6 Aug 2006 21:26:05 +0000 Subject: [PATCH] - Removed logging as logger is not started yet here git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@265 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- fail2ban-server | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/fail2ban-server b/fail2ban-server index f95fbe6c..071c83dd 100755 --- a/fail2ban-server +++ b/fail2ban-server @@ -25,7 +25,7 @@ __date__ = "$Date$" __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" -import locale, getopt, logging, sys +import locale, getopt, sys # Inserts our own modules path first in the list # fix for bug #343821 @@ -35,9 +35,6 @@ from version import version from server.server import Server from utils.process import * -# Gets the instance of the logger. -logSys = logging.getLogger("fail2ban") - ## # \mainpage Fail2Ban # @@ -101,19 +98,11 @@ class Fail2banServer: self.getCmdLineOptions(optList) - # Add the default logging handler - stdout = logging.StreamHandler(sys.stdout) - # set a format which is simpler for console use - formatter = logging.Formatter('%(name)-16s: %(levelname)-6s %(message)s') - # tell the handler to use this format - stdout.setFormatter(formatter) - logSys.addHandler(stdout) - if self.conf["background"]: retCode = createDaemon() #signal.signal(signal.SIGTERM, sigTERMhandler) if not retCode: - logSys.error("Unable to start daemon") + print "Unable to start daemon" sys.exit(-1) try: