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

Function payment_log

plugins/xpay/xpay.c:247–263  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 9

attempt_logFunction · 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

Calls 2

plugin_notify_messageFunction · 0.50
plugin_logFunction · 0.50

Tested by

no test coverage detected