mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 16:14:23 +01:00
plugins: do I/O logging.
I was trying to trace a problem with a plugin, and needed this. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
48df6c8566
commit
8f9c48254b
@@ -74,8 +74,8 @@ void plugin_hook_call_(struct lightningd *ld, const struct plugin_hook *hook,
|
||||
* currently have a list to store these. We might want
|
||||
* to eventually to inspect in-flight requests. */
|
||||
ph_req = notleak(tal(hook->plugin, struct plugin_hook_request));
|
||||
/* FIXME: do IO logging for these! */
|
||||
req = jsonrpc_request_start(NULL, hook->name, NULL,
|
||||
req = jsonrpc_request_start(NULL, hook->name,
|
||||
plugin_get_log(hook->plugin),
|
||||
plugin_hook_callback, ph_req);
|
||||
ph_req->hook = hook;
|
||||
ph_req->cb_arg = cb_arg;
|
||||
|
||||
Reference in New Issue
Block a user