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

Function command_log

lightningd/jsonrpc.c:1403–1415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

log_Function · 0.70

Tested by

no test coverage detected