Skip to content

Commit 26e3695

Browse files
committed
fix error messages
1 parent 43a95e5 commit 26e3695

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

splitio/client/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ def _make_evaluations(self, key, features, attributes, method_name, metric_name)
206206
treatments[feature] = (result['treatment'], result['configurations'])
207207

208208
except Exception: # pylint: disable=broad-except
209-
self._logger.error('get_treatments: An exception occured when evaluating '
210-
'feature ' + feature + ' returning CONTROL.')
209+
self._logger.error('%s: An exception occured when evaluating '
210+
'feature %s returning CONTROL.' % (method_name, feature))
211211
treatments[feature] = CONTROL, None
212212
self._logger.debug('Error: ', exc_info=True)
213213
continue
@@ -219,8 +219,8 @@ def _make_evaluations(self, key, features, attributes, method_name, metric_name)
219219
for impression in bulk_impressions:
220220
self._send_impression_to_listener(impression, attributes)
221221
except Exception: # pylint: disable=broad-except
222-
self._logger.error('get_treatments: An exception when trying to store '
223-
'impressions.')
222+
self._logger.error('%s: An exception when trying to store '
223+
'impressions.' % method_name)
224224
self._logger.debug('Error: ', exc_info=True)
225225

226226
return treatments

0 commit comments

Comments
 (0)