MCPcopy Create free account
hub / github.com/ElementsProject/lightning / paymod_log_header

Function paymod_log_header

plugins/libplugin-pay.c:181–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181static const char *paymod_log_header(const tal_t *ctx,
182 struct payment *p)
183{
184 const char *id = payment_cmd(p)->id;
185 if (strstarts(id, "\""))
186 return tal_strndup(ctx, id+1, strlen(id+1)-1);
187 return tal_strdup(ctx, id);
188}
189
190void
191paymod_log(struct payment *p, enum log_level l, const char *fmt, ...)

Callers 2

paymod_logFunction · 0.85
paymod_errFunction · 0.85

Calls 1

payment_cmdFunction · 0.85

Tested by

no test coverage detected