From d2b0896dcef897437bf2ffdb69848fff8ff9c1c9 Mon Sep 17 00:00:00 2001 From: Tomas Touceda Date: Mon, 8 Apr 2013 16:23:12 -0300 Subject: Remove logging setup from thandy --- lib/thandy/ClientCLI.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'lib') diff --git a/lib/thandy/ClientCLI.py b/lib/thandy/ClientCLI.py index d3bcaf0..b86b5eb 100644 --- a/lib/thandy/ClientCLI.py +++ b/lib/thandy/ClientCLI.py @@ -39,7 +39,6 @@ class RegularLogFilter: def configureLogs(options): logLevel = logging.INFO - cLogFormat = False for o,v in options: if o == '--debug': logLevel = logging.DEBUG @@ -47,21 +46,9 @@ def configureLogs(options): logLevel = logging.INFO elif o == '--warn': logLevel = logging.WARN - elif o == '--controller-log-format': - cLogFormat = True - console = logging.StreamHandler() - console.setLevel(logLevel) logger = logging.getLogger("") - logger.addHandler(console) logger.setLevel(logLevel) - if cLogFormat: - #formatter = logging.Formatter("%(names)s %(levelname)s %(message)r") - formatter = ControlLogFormatter() - else: - formatter = logging.Formatter("%(levelname)s:%(message)s") - console.addFilter(RegularLogFilter()) - console.setFormatter(formatter) def update(args): repoRoot = thandy.util.userFilename("cache") -- cgit v1.2.3