| 201 | paymod_log_header(tmpctx, p), p->partid, txt); |
| 202 | } |
| 203 | static void |
| 204 | paymod_err(struct payment *p, const char *fmt, ...) |
| 205 | { |
| 206 | char *txt; |
| 207 | va_list ap; |
| 208 | |
| 209 | va_start(ap, fmt); |
| 210 | txt = tal_vfmt(tmpctx, fmt, ap); |
| 211 | va_end(ap); |
| 212 | |
| 213 | plugin_err(p->plugin, "cmd %s partid %"PRIu32": %s", |
| 214 | paymod_log_header(tmpctx, p), p->partid, txt); |
| 215 | } |
| 216 | |
| 217 | /* Generic handler for RPC failures that should end up failing the payment. */ |
| 218 | static struct command_result *payment_rpc_failure(struct command *cmd, |
no test coverage detected