Add the error code to the worker error logged to redis
This commit is contained in:
parent
2379af71f8
commit
598fc6ec46
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Reference in a new issue