MCPcopy Create free account
hub / github.com/ElementsProject/lightning / notify_log

Function notify_log

lightningd/notification.c:658–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656REGISTER_NOTIFICATION(log);
657
658void 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
673static void plugin_notification_serialize(struct json_stream *stream,
674 struct plugin *plugin)

Callers 1

maybe_notify_logFunction · 0.70

Calls 3

notify_startFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected