| 274 | PRINTF_FMT(3,4); |
| 275 | |
| 276 | static 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__) |
no test coverage detected