| 269 | PRINTF_FMT(3,4); |
| 270 | |
| 271 | static 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__) |
no test coverage detected