Add the error code to the worker error logged to redis

This commit is contained in:
Joseph Schorr 2015-05-18 15:01:48 -04:00
parent 2379af71f8
commit 598fc6ec46

View file

@ -94,7 +94,10 @@ class WorkerError(object):
def extra_data(self):
if self._base_message:
return {
'base_error': self._base_message
'base_error': self._base_message,
'error_code': self._error_code
}
return {}
return {
'error_code': self._error_code
}