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

Function payment_log

plugins/xpay/xpay.c:252–268  ·  view source on GitHub ↗

Logging: both to the command itself and the log file */

Source from the content-addressed store, hash-verified

250
251/* Logging: both to the command itself and the log file */
252static void payment_log(struct payment *payment,
253 enum log_level level,
254 const char *fmt,
255 ...)
256{
257 va_list args;
258 const char *msg;
259
260 va_start(args, fmt);
261 msg = tal_vfmt(tmpctx, fmt, args);
262 va_end(args);
263
264 if (payment->cmd)
265 plugin_notify_message(payment->cmd, level, "%s", msg);
266 plugin_log(payment->plugin, level, "%"PRIu64": %s",
267 payment->unique_id, msg);
268}
269
270static void attempt_log(struct attempt *attempt,
271 enum log_level level,

Callers 11

attempt_logFunction · 0.85
do_injectFunction · 0.85
add_cltv_shadowFunction · 0.85
getroutes_doneFunction · 0.85
getroutes_done_errFunction · 0.85
getroutes_forFunction · 0.85
add_fake_channelFunction · 0.85
log_payment_errFunction · 0.85
xpay_coreFunction · 0.85
check_onion_budgetFunction · 0.85

Calls 2

plugin_notify_messageFunction · 0.50
plugin_logFunction · 0.50

Tested by

no test coverage detected