mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
Adjust log level for logging disconnected RPC users ("Abandoning command" + "Command returned result after jcon close")
The following command can be used to trigger these messages: ``` $ timeout 0.01 cli/lightning-cli connect [insert-syntactically-valid-peer-id-here] 123.123.123.123 # where 123.123.123.123 is unreachable ```
This commit is contained in:
parent
54b8562936
commit
a20cf5463d
@ -39,7 +39,7 @@ static void destroy_jcon(struct json_connection *jcon)
|
||||
struct command *cmd;
|
||||
|
||||
list_for_each(&jcon->commands, cmd, list) {
|
||||
log_unusual(jcon->log, "Abandoning command");
|
||||
log_debug(jcon->log, "Abandoning command");
|
||||
cmd->jcon = NULL;
|
||||
}
|
||||
|
||||
@ -394,7 +394,7 @@ void command_success(struct command *cmd, struct json_result *result)
|
||||
struct json_connection *jcon = cmd->jcon;
|
||||
|
||||
if (!jcon) {
|
||||
log_unusual(cmd->ld->log,
|
||||
log_debug(cmd->ld->log,
|
||||
"Command returned result after jcon close");
|
||||
tal_free(cmd);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user