1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

Adds more tests

This commit is contained in:
Amir Raminfar
2018-11-29 19:36:49 -08:00
parent 441f234398
commit a35f4ef32e
3 changed files with 67 additions and 9 deletions

View File

@@ -158,7 +158,7 @@ func (h *handler) streamLogs(w http.ResponseWriter, r *http.Request) {
count := binary.BigEndian.Uint32(hdr[4:])
_, err = io.CopyN(&buffer, reader, int64(count))
if err != nil {
if err != nil || err == io.EOF {
log.Debugf("Error while reading from log stream: %v", err)
break
}