Skip to content

Commit 0fcaf19

Browse files
committed
getlog: fix schema.
getlog() only gets recent logs, not all of them (since it prunes, and soon will be a ringbuffer). And "data" is actually an optional field, not required. Signed-off-by: Rusty Russell <[email protected]>
1 parent 60fba42 commit 0fcaf19

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

contrib/msggen/msggen/schema.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15010,7 +15010,7 @@
1501015010
"$schema": "../rpc-schema-draft.json",
1501115011
"type": "object",
1501215012
"rpc": "getlog",
15013-
"title": "Command to show logs.",
15013+
"title": "Command to show recent logs.",
1501415014
"description": [
1501515015
"The **getlog** the RPC command to show logs, with optional log *level*."
1501615016
],
@@ -15184,8 +15184,7 @@
1518415184
"required": [
1518515185
"time",
1518615186
"source",
15187-
"log",
15188-
"data"
15187+
"log"
1518915188
],
1519015189
"properties": {
1519115190
"type": {},

doc/schemas/getlog.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "../rpc-schema-draft.json",
33
"type": "object",
44
"rpc": "getlog",
5-
"title": "Command to show logs.",
5+
"title": "Command to show recent logs.",
66
"description": [
77
"The **getlog** the RPC command to show logs, with optional log *level*."
88
],
@@ -176,8 +176,7 @@
176176
"required": [
177177
"time",
178178
"source",
179-
"log",
180-
"data"
179+
"log"
181180
],
182181
"properties": {
183182
"type": {},

0 commit comments

Comments
 (0)