From be9b55fcb51ac8fedfea517975dd40510041ba06 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 26 May 2020 13:20:44 +0200 Subject: [PATCH] pyln: Add a traceback if a hook or rpc method fails --- contrib/pyln-client/pyln/client/plugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/pyln-client/pyln/client/plugin.py b/contrib/pyln-client/pyln/client/plugin.py index 042b52e63..60f5b4fab 100644 --- a/contrib/pyln-client/pyln/client/plugin.py +++ b/contrib/pyln-client/pyln/client/plugin.py @@ -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(), }, })