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

Function command_log

lightningd/jsonrpc.c:1401–1413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1399}
1400
1401void command_log(struct command *cmd, enum log_level level,
1402 const char *fmt, ...)
1403{
1404 const char *msg;
1405 va_list ap;
1406
1407 va_start(ap, fmt);
1408 msg = tal_vfmt(cmd, fmt, ap);
1409 log_(cmd->ld->log, level, NULL, level >= LOG_UNUSUAL,
1410 "JSON COMMAND %s: %s",
1411 cmd->json_cmd->name, msg);
1412 va_end(ap);
1413}
1414
1415void command_set_usage(struct command *cmd, const char *usage TAKES)
1416{

Callers

nothing calls this directly

Calls 1

log_Function · 0.70

Tested by

no test coverage detected