Skip to content

Commit aa7aafe

Browse files
author
Tyson Holub
committed
remove unicode string prefix from API logging
1 parent cd2a529 commit aa7aafe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python_http_client/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,18 +261,18 @@ def http_request(*_, **kwargs):
261261
request.add_header('Content-Type', 'application/json')
262262
request.get_method = lambda: method
263263
timeout = kwargs.pop('timeout', None)
264-
_logger.info(u'{method} Request: {url}'.format(
264+
_logger.info('{method} Request: {url}'.format(
265265
method=request.get_method(),
266266
url=request.get_full_url()))
267267
if request.data:
268-
_logger.info(u'PAYLOAD: {data}'.format(
268+
_logger.info('PAYLOAD: {data}'.format(
269269
data=request.data))
270-
_logger.info(u'HEADERS: {headers}'.format(
270+
_logger.info('HEADERS: {headers}'.format(
271271
headers=request.headers))
272272
response = Response(
273273
*self._make_request(opener, request, timeout=timeout)
274274
)
275-
_logger.info(u'{method} Response: {status} {body}'.format(
275+
_logger.info('{method} Response: {status} {body}'.format(
276276
method=response.method,
277277
status=response.status_code,
278278
body=response.body))

0 commit comments

Comments
 (0)