8000 Merge pull request #178 from john5223/master · madCode/twilio-python@14e13f6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 14e13f6

Browse files
committed
Merge pull request twilio#178 from john5223/master
Set the name of the logger to twilio
2 parents 6ddee97 + 18ec25c commit 14e13f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

twilio/rest/resources/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
from .imports import parse_qs, httplib2, json
1414
from .util import transform_params, parse_rfc2822_date, UNSET_TIMEOUT
1515

16+
logger = logging.getLogger('twilio')
17+
1618

1719
class Response(object):
1820
"""
@@ -181,7 +183,7 @@ def request(self, method, uri, **kwargs):
181183
kwargs['timeout'] = self.timeout
182184
resp = make_twilio_request(method, uri, auth=self.auth, **kwargs)
183185

184-
logging.debug(resp.content)
186+
logger.debug(resp.content)
185187

186188
if method == "DELETE":
187189
return resp, {}

0 commit comments

Comments
 (0)
0