From d851132c59f5e3f675fb553539d43323a4878871 Mon Sep 17 00:00:00 2001 From: spectacles Date: Fri, 17 Apr 2015 14:08:38 +0200 Subject: [PATCH] adjust log level --- CodeComplice.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CodeComplice.py b/CodeComplice.py index 60e1929..1af19b5 100644 --- a/CodeComplice.py +++ b/CodeComplice.py @@ -137,7 +137,7 @@ def emit(self, record): for logger in ('citadel', 'css', 'django', 'html', 'html5', 'javascript', 'mason', 'nodejs', 'perl', 'php', 'python', 'python3', 'rhtml', 'ruby', 'smarty', 'tcl', 'templatetoolkit', 'xbl', 'xml', 'xslt', 'xul'): - logging.getLogger("codeintel." + logger).setLevel(logging.INFO) # WARNING + logging.getLogger("codeintel." + logger).setLevel(logging.WARNING) # WARNING #no live completions for these @@ -762,11 +762,11 @@ def codeintel_manager(manager_id=None): mgr.initialize() # Connect the logging file to the handler - condeintel_log_filename = os.path.join(codeintel_database_dir, 'codeintel.log') - condeintel_log_file = open(condeintel_log_filename, 'w', 1) - codeintel_log.handlers = [logging.StreamHandler(condeintel_log_file)] - msg = "Starting logging SublimeCodeIntel v%s rev %s (%s) on %s" % (VERSION, get_revision()[:12], os.stat(__file__)[stat.ST_MTIME], datetime.datetime.now().ctime()) - print("%s\n%s" % (msg, "=" * len(msg)), file=condeintel_log_file) + #condeintel_log_filename = os.path.join(codeintel_database_dir, 'codeintel.log') + #condeintel_log_file = open(condeintel_log_filename, 'w', 1) + #codeintel_log.handlers = [logging.StreamHandler(condeintel_log_file)] + #msg = "Starting logging SublimeCodeIntel v%s rev %s (%s) on %s" % (VERSION, get_revision()[:12], os.stat(__file__)[stat.ST_MTIME], datetime.datetime.now().ctime()) + #print("%s\n%s" % (msg, "=" * len(msg)), file=condeintel_log_file) _ci_mgr_ = {} _ci_mgr_[manager_id] = mgr