mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
fix: filter rest errors and logs returned (#16019)
This commit is contained in:
1 parent
19d0340ddf
commit
ddeca9f12a
4 files changed
+13
-6
No files matched your search
@@ -1130,7 +1130,10 @@ func (s *peerRESTServer) ConsoleLogHandler(w http.ResponseWriter, r *http.Reques
|
||||
enc := gob.NewEncoder(w)
|
||||
for {
|
||||
select {
|
||||
case entry := <-ch:
|
||||
case entry, ok := <-ch:
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
if err := enc.Encode(entry); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user