| 656 | REGISTER_NOTIFICATION(log); |
| 657 | |
| 658 | void notify_log(struct lightningd *ld, |
| 659 | enum log_level level, |
| 660 | struct timeabs time, |
| 661 | const char *source, |
| 662 | const char *logmsg) |
| 663 | { |
| 664 | struct jsonrpc_notification *n; |
| 665 | |
| 666 | n = notify_start(ld, "log"); |
| 667 | if (!n) |
| 668 | return; |
| 669 | log_notification_serialize(n->stream, level, time, source, logmsg); |
| 670 | notify_send(ld, n); |
| 671 | } |
| 672 | |
| 673 | static void plugin_notification_serialize(struct json_stream *stream, |
| 674 | struct plugin *plugin) |
no test coverage detected