pyln: Add a traceback if a hook or rpc method fails

This commit is contained in:
Christian Decker 2020-05-26 13:20:44 +02:00
parent b5c9dcab5a
commit be9b55fcb5

View File

@ -88,6 +88,7 @@ class Request(dict):
"message": "Error while processing {method}: {exc}"
.format(method=self.method, exc=str(exc)),
# 'data' field "may be omitted."
"traceback": traceback.format_exc(),
},
})