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

Function attempt_log

plugins/xpay/xpay.c:276–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274 PRINTF_FMT(3,4);
275
276static void attempt_log(struct attempt *attempt,
277 enum log_level level,
278 const char *fmt,
279 ...)
280{
281 va_list args;
282 const char *msg, *path;
283
284 va_start(args, fmt);
285 msg = tal_vfmt(tmpctx, fmt, args);
286 va_end(args);
287 path = fmt_path(tmpctx, attempt);
288
289 payment_log(attempt->payment, level, "%s: %s", path, msg);
290}
291
292#define attempt_unusual(attempt, fmt, ...) \
293 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