Remove some logging
This commit is contained in:
@@ -2,7 +2,6 @@ package vkubelet
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"fmt"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
@@ -55,8 +54,8 @@ func ApiServerHandler(w http.ResponseWriter, req *http.Request) {
|
|||||||
container := reqParts[4]
|
container := reqParts[4]
|
||||||
podsLogs, err := p.GetContainerLogs(namespace, pod, container)
|
podsLogs, err := p.GetContainerLogs(namespace, pod, container)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Errorf("Error getting logs for pod '%s': %s", pod, err)
|
|
||||||
io.WriteString(w, err.Error())
|
io.WriteString(w, err.Error())
|
||||||
|
log.Fatal(err)
|
||||||
} else {
|
} else {
|
||||||
io.WriteString(w, podsLogs)
|
io.WriteString(w, podsLogs)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user