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

Function status_vfmt

common/status.c:144–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void status_vfmt(enum log_level level,
145 const struct node_id *peer,
146 const char *fmt, va_list ap)
147{
148 char *str;
149
150 /* These are spammy, so only log if requested (or IO logging)*/
151 if (level == LOG_TRACE && (!logging_trace && !logging_io))
152 return;
153
154 str = tal_vfmt(NULL, fmt, ap);
155 status_send(take(towire_status_log(NULL, level, peer, str)));
156 tal_free(str);
157}
158
159void status_fmt(enum log_level level,
160 const struct node_id *peer,

Callers 8

send_warningFunction · 0.85
connectd_logcbFunction · 0.85
gossmap_logcbFunction · 0.85
compactd_brokenFunction · 0.85
hsmd_status_fmtFunction · 0.85
status_fmtFunction · 0.85
memleak_status_brokenFunction · 0.85
status_backtrace_printFunction · 0.85

Calls 2

status_sendFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected