monitor: add log include location option on monitor CLI and API (#18795)

This commit is contained in:
James Rasell
2023-10-20 07:55:22 +01:00
committed by GitHub
parent f5c5035fde
commit ca9e08e6b5
12 changed files with 141 additions and 64 deletions

View File

@@ -42,4 +42,13 @@ func TestMonitorCommand_Fails(t *testing.T) {
out = ui.ErrorWriter.String()
must.StrContains(t, out, "No node(s) with prefix")
ui.ErrorWriter.Reset()
// Fails on passing a log-include-location flag which cannot be parsed.
code = cmd.Run([]string{"-address=" + url, "-log-include-location=maybe"})
must.One(t, code)
out = ui.ErrorWriter.String()
must.StrContains(t, out, `invalid boolean value "maybe" for -log-include-location`)
}