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

Function level_prefix

lightningd/log.c:305–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305static const char *level_prefix(enum log_level level)
306{
307 switch (level) {
308 case LOG_IO_OUT:
309 case LOG_IO_IN:
310 return "IO ";
311 case LOG_TRACE:
312 return "TRACE ";
313 case LOG_DBG:
314 return "DEBUG ";
315 case LOG_INFORM:
316 return "INFO ";
317 case LOG_UNUSUAL:
318 return "UNUSUAL";
319 case LOG_BROKEN:
320 return "**BROKEN**";
321 }
322 abort();
323}
324
325/* What do these filters say about level to log this entry at? */
326static bool filter_level(const struct list_head *print_filters,

Callers 1

log_to_filesFunction · 0.85

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected