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

Function attempt_log

plugins/xpay/xpay.c:271–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269 PRINTF_FMT(3,4);
270
271static void attempt_log(struct attempt *attempt,
272 enum log_level level,
273 const char *fmt,
274 ...)
275{
276 va_list args;
277 const char *msg, *path;
278
279 va_start(args, fmt);
280 msg = tal_vfmt(tmpctx, fmt, args);
281 va_end(args);
282 path = fmt_path(tmpctx, attempt);
283
284 payment_log(attempt->payment, level, "%s: %s", path, msg);
285}
286
287#define attempt_unusual(attempt, fmt, ...) \
288 attempt_log((attempt), LOG_UNUSUAL, (fmt), __VA_ARGS__)

Callers 3

add_result_summaryFunction · 0.85

Calls 2

fmt_pathFunction · 0.85
payment_logFunction · 0.85

Tested by

no test coverage detected