mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
plugins: when plugins start, log their PID and path
This commit is contained in:
committed by
Rusty Russell
parent
7c270e299b
commit
0abbbbb588
@@ -989,6 +989,8 @@ void plugins_init(struct plugins *plugins, const char *dev_plugin_debug)
|
|||||||
if (p->pid == -1)
|
if (p->pid == -1)
|
||||||
fatal("error starting plugin '%s': %s", p->cmd,
|
fatal("error starting plugin '%s': %s", p->cmd,
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
|
else
|
||||||
|
log_debug(plugins->log, "started(%u) %s", p->pid, p->cmd);
|
||||||
p->buffer = tal_arr(p, char, 64);
|
p->buffer = tal_arr(p, char, 64);
|
||||||
p->stop = false;
|
p->stop = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user