| 179 | } |
| 180 | |
| 181 | static const char *paymod_log_header(const tal_t *ctx, |
| 182 | struct payment *p) |
| 183 | { |
| 184 | const char *id = payment_cmd(p)->id; |
| 185 | if (strstarts(id, "\"")) |
| 186 | return tal_strndup(ctx, id+1, strlen(id+1)-1); |
| 187 | return tal_strdup(ctx, id); |
| 188 | } |
| 189 | |
| 190 | void |
| 191 | paymod_log(struct payment *p, enum log_level l, const char *fmt, ...) |
no test coverage detected