8000 Set the name of the logger to twilio · madCode/twilio-python@f8023b0 · GitHub
[go: up one dir, main page]

Skip to content

Commit f8023b0

Browse files
committed
Set the name of the logger to twilio
1 parent 6ddee97 commit f8023b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

twilio/rest/resources/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import logging
2+
logger = logging.getLogger('twilio')
23
import os
34
import platform
45

@@ -181,7 +182,7 @@ def request(self, method, uri, **kwargs):
181182
kwargs['timeout'] = self.timeout
182183
resp = make_twilio_request(method, uri, auth=self.auth, **kwargs)
183184

184-
logging.debug(resp.content)
185+
logger.debug(resp.content)
185186

186187
if method == "DELETE":
187188
return resp, {}

0 commit comments

Comments
 (0)
0