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

Function command_log

lightningd/jsonrpc.c:1405–1417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

log_Function · 0.70

Tested by

no test coverage detected