mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Improve logging errors from tendermint rpc
Signed-off-by: Shahbaz Nazir <shahbaz@bigchaindb.com>
This commit is contained in:
parent
241aae335d
commit
aa0377dc33
@ -100,7 +100,10 @@ class BigchainDB(object):
|
|||||||
|
|
||||||
error = response.get('error')
|
error = response.get('error')
|
||||||
if error:
|
if error:
|
||||||
return (500, error)
|
status = error.get('status', 500)
|
||||||
|
message = error.get('message', 'Internal error')
|
||||||
|
data = error.get('data', '')
|
||||||
|
return (status, message + ' - ' + data)
|
||||||
|
|
||||||
result = response['result']
|
result = response['result']
|
||||||
if mode == self.mode_commit:
|
if mode == self.mode_commit:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user