Skip to content

Commit

Permalink
adjust log level
Browse files Browse the repository at this point in the history
  • Loading branch information
spectacles committed Apr 17, 2015
1 parent 899b507 commit d851132
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CodeComplice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d851132

Please sign in to comment.