X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fe561d69b42d55191d6d1f01d4f3cdcf1fc9faaa..2697f35c5356e4aa6c0ca9c59068980c0ef25d61:/services/keepproxy/keepproxy.go diff --git a/services/keepproxy/keepproxy.go b/services/keepproxy/keepproxy.go index b6c8bd66aa..c6fd99b9d8 100644 --- a/services/keepproxy/keepproxy.go +++ b/services/keepproxy/keepproxy.go @@ -26,10 +26,10 @@ import ( "git.curoverse.com/arvados.git/sdk/go/health" "git.curoverse.com/arvados.git/sdk/go/httpserver" "git.curoverse.com/arvados.git/sdk/go/keepclient" - log "github.com/Sirupsen/logrus" "github.com/coreos/go-systemd/daemon" "github.com/ghodss/yaml" "github.com/gorilla/mux" + log "github.com/sirupsen/logrus" ) var version = "dev" @@ -152,7 +152,7 @@ func main() { } err = f.Sync() if err != nil { - log.Fatal("sync(%s): %s", cfg.PIDFile, err) + log.Fatalf("sync(%s): %s", cfg.PIDFile, err) } } @@ -541,7 +541,7 @@ func (h *proxyHandler) Put(resp http.ResponseWriter, req *http.Request) { if locatorIn == "" { bytes, err2 := ioutil.ReadAll(req.Body) if err2 != nil { - _ = errors.New(fmt.Sprintf("Error reading request body: %s", err2)) + err = fmt.Errorf("Error reading request body: %s", err2) status = http.StatusInternalServerError return }