mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 23:06:44 +01:00
assert(tal_count(log) > 0) in log_to_json(...)
This commit is contained in:
parent
7b80e5b66c
commit
d02b890b55
1 changed files with 1 additions and 0 deletions
|
@ -130,6 +130,7 @@ static void log_to_json(unsigned int skipped,
|
|||
json_add_time(info->response, "time", diff.ts);
|
||||
json_add_string(info->response, "source", prefix);
|
||||
if (level == LOG_IO) {
|
||||
assert(tal_count(log) > 0);
|
||||
if (log[0])
|
||||
json_add_string(info->response, "direction", "IN");
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue