Skip to content

Commit 1dc2f73

Browse files
committed
Move logger to class static in HttpClient
1 parent b114445 commit 1dc2f73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

trakt/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class HttpClient:
1919
"""Class for abstracting HTTP requests
2020
"""
2121

22+
logger = logging.getLogger(__name__)
23+
2224
#: Default request HEADERS
2325
headers = {'Content-Type': 'application/json', 'trakt-api-version': '2'}
2426

@@ -42,7 +44,6 @@ def __init__(self, base_url: str, session: Session, timeout=None):
4244
self.base_url = base_url
4345
self.session = session
4446
self.timeout = timeout or TIMEOUT
45-
self.logger = logging.getLogger('trakt.http_client')
4647

4748
def get(self, url: str):
4849
"""

0 commit comments

Comments
 (0)