mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 06:02:18 +00:00
Clean up error logs.
Use %v for errors, tidy some messages, make error messages start lowe-case (as per go guidelines). Just accumulated nits.
This commit is contained in:
@@ -218,7 +218,7 @@ func (s *Server) handleContainerLogs(w http.ResponseWriter, req *http.Request) {
|
||||
if flusher, ok := fw.writer.(http.Flusher); ok {
|
||||
fw.flusher = flusher
|
||||
} else {
|
||||
s.error(w, fmt.Errorf("Unable to convert %v into http.Flusher", fw))
|
||||
s.error(w, fmt.Errorf("unable to convert %v into http.Flusher", fw))
|
||||
}
|
||||
w.Header().Set("Transfer-Encoding", "chunked")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
|
Reference in New Issue
Block a user