Skip to content

Commit b845f78

Browse files
committed
Version bump v2.0.0-beta.14
+ Fix oop logger
1 parent 4402ea7 commit b845f78

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

codeintel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.0.0-beta.13'
1+
__version__ = '2.0.0-beta.14'

codeintel/__main__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def __init__(self, *args, **kwargs):
9696

9797
# Don't redirect output
9898
os.environ["KOMODO_VERBOSE"] = "1"
99-
logging.basicConfig(stream=TextStream(sys.stderr))
10099

101100
self.verbosity = 0
102101
self.traceback = False
@@ -205,7 +204,7 @@ def set_log_file(self, option, opt_str, value, parser):
205204
if not os.path.exists(log_dir):
206205
os.makedirs(log_dir)
207206
stream = open(value, 'wt')
208-
logging.basicConfig(stream=TextStream(stream))
207+
logging.getLogger().addHandler(logging.StreamHandler(stream=TextStream(stream)))
209208
# XXX marky horrible ugly hack
210209
sys.stderr = stream
211210
sys.stdout = stream

codeintel/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
logger_name = 'CodeIntel.codeintel'
5454

55-
logging.getLogger(logger_name).setLevel(logging.INFO)
55+
logging.getLogger(logger_name).setLevel(logging.INFO) # INFO
5656

5757

5858
class CodeIntel(object):

codeintel/codeintel2/citadel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ def import_blob_name(self, import_name, libs, ctlr):
547547
for lib in libs:
548548
blob = lib.get_blob(import_name)
549549
if blob is not None:
550-
ctlr.info("is blob '%s' from %s? yes", import_name, lib)
550+
ctlr.info("is blob '%s' from %s? yes (%s)", import_name, lib, blob.get("src"))
551551
return blob
552552
else:
553553
ctlr.info("is blob '%s' from %s? no", import_name, lib)

codeintel/process.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import sys
4040
import time
4141
import types
42-
import six
4342
if sys.platform != "win32":
4443
import signal # used by kill() method on Linux/Mac
4544
import logging
@@ -49,7 +48,7 @@
4948
if sys.version_info[0] == 3:
5049
string_types = str
5150
else:
52-
string_types = six.string_types
51+
string_types = basestring
5352

5453
#-------- Globals -----------#
5554

0 commit comments

Comments
 (0)