Skip to content

Commit 7a19609

Browse files
Dmitry AndreevDmitry Andreev
authored andcommitted
fix python2.7 compatibility, unicode logging issue
logger raise exception when a fullfilment contains a non-ascii symbol WARNING; 2020-04-23 13:55:45,425; Fullfilment.logger; fulfillment_automation:dispatch:line-132: Skipping request PR-4463-4286-6684-001 because an exception was raised: 'ascii' codec can't encode character u'\xe1' in position 5266: ordinal not in range(128)
1 parent cea0808 commit 7a19609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connect/logger/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def wrapper(self, *args, **kwargs):
3434
custom_logger.debug('Function params: {} {}'.format(args, kwargs))
3535
result = func(self, *args, **kwargs)
3636
custom_logger.debug(
37-
'Function `{}.{}` return: {}'.format(
37+
u'Function `{}.{}` return: {}'.format(
3838
self.__class__.__name__, func.__name__, result))
3939
return result
4040

0 commit comments

Comments
 (0)