fix: filter rest errors and logs returned (#16019)

This commit is contained in:
Klaus Post authored and GitHub committed 2022-11-07 10:38:08 -08:00
1 parent 19d0340ddf
commit ddeca9f12a
4 files changed
+13 -6

No files matched your search

+4 -1
View File
@@ -1611,7 +1611,10 @@ func (a adminAPIHandlers) ConsoleLogHandler(w http.ResponseWriter, r *http.Reque
for {
select {
case log := <-logCh:
case log, ok := <-logCh:
if !ok {
return
}
if log.SendLog(node, logKind) {
if err := enc.Encode(log); err != nil {
return