| 155 | } |
| 156 | |
| 157 | static void |
| 158 | paymod_log(struct payment *p, enum log_level l, const char *fmt, ...) |
| 159 | { |
| 160 | const char *type; |
| 161 | u64 id; |
| 162 | char *txt; |
| 163 | va_list ap; |
| 164 | |
| 165 | va_start(ap, fmt); |
| 166 | txt = tal_vfmt(tmpctx, fmt, ap); |
| 167 | va_end(ap); |
| 168 | |
| 169 | paymod_log_header(p, &type, &id); |
| 170 | plugin_log(p->plugin, l, "%s %"PRIu64" partid %"PRIu32": %s", |
| 171 | type, id, p->partid, txt); |
| 172 | } |
| 173 | static void |
| 174 | paymod_err(struct payment *p, const char *fmt, ...) |
| 175 | { |
no test coverage detected