hotfix repair html table

This commit is contained in:
Mukhtar Akere
2025-06-26 07:31:12 +01:00
parent cee0e20fe1
commit 1d19be9013
3 changed files with 16 additions and 7 deletions

View File

@@ -103,10 +103,5 @@ func (s *Server) getLogs(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Expires", "0")
// Stream the file
_, err = io.Copy(w, file)
if err != nil {
s.logger.Error().Err(err).Msg("Error streaming log file")
http.Error(w, "Error streaming log file", http.StatusInternalServerError)
return
}
_, _ = io.Copy(w, file)
}