Get loggers through implicit module names
authorHarmon <Harmon758@gmail.com>
Wed, 12 Jun 2019 08:07:32 +0000 (03:07 -0500)
committerHarmon <Harmon758@gmail.com>
Wed, 12 Jun 2019 08:07:32 +0000 (03:07 -0500)
tweepy/binder.py
tweepy/cache.py

index ed4b024c6189c17d07a3ccdb9ab8d0413c1cc5dd..414bfd95a1bb97563e8fcfcaf6ce7246a20e31c0 100644 (file)
@@ -17,7 +17,7 @@ from tweepy.utils import convert_to_utf8_str
 
 re_path_template = re.compile(r'{\w+}')
 
-log = logging.getLogger('tweepy.binder')
+log = logging.getLogger(__name__)
 
 
 def bind_api(**config):
index 1f848dc516582d4183921d925c58495c18c535c9..ccf5a71d7c8346af594316ad127a78e89efdde0c 100644 (file)
@@ -21,7 +21,7 @@ except ImportError:
     # TODO: use win32file
     pass
 
-log = logging.getLogger('tweepy.cache')
+log = logging.getLogger(__name__)
 
 
 class Cache(object):