tiny fix to avoid duplicate code

debian-releases/etch
Yaroslav Halchenko 19 years ago
parent 193a98c97a
commit bfcdf41276

@ -346,16 +346,6 @@ def main():
elif conf["verbose"] > 1:
logSys.setLevel(logging.DEBUG)
# Set debug log level
if conf["debug"]:
logSys.setLevel(logging.DEBUG)
formatterstring = ('%(levelname)s: [%(filename)s (%(lineno)d)] ' +
'%(message)s')
formatter = logging.Formatter("%(asctime)s " + formatterstring)
stdout.setFormatter(formatter)
logSys.warn("DEBUG MODE: FIREWALL COMMANDS ARE _NOT_ EXECUTED BUT " +
"ONLY DISPLAYED IN THE LOG MESSAGES")
# Set debug log level
if conf["debug"]:
logSys.setLevel(logging.DEBUG)

Loading…
Cancel
Save