4194: remove some more old log statements
authorradhika <radhika@curoverse.com>
Fri, 14 Nov 2014 20:08:44 +0000 (15:08 -0500)
committerradhika <radhika@curoverse.com>
Fri, 14 Nov 2014 20:08:44 +0000 (15:08 -0500)
services/keepstore/handlers.go

index 7e4256ff135c85189e592bba5486a2fbf29f241c..5eed4ed653b6b1ed37bd1950d65c2c549b44e997 100644 (file)
@@ -171,9 +171,6 @@ func GetBlockHandler(resp http.ResponseWriter, req *http.Request) {
        if err != nil {
                // This type assertion is safe because the only errors
                // GetBlock can return are DiskHashError or NotFoundError.
-               if err == NotFoundError {
-                       log.Printf("%s: not found, giving up\n", hash)
-               }
                http.Error(resp, err.Error(), err.(*KeepError).HTTPCode)
                return
        }
@@ -348,7 +345,6 @@ func GetVolumeStatus(volume string) *VolumeStatus {
 //
 func DeleteHandler(resp http.ResponseWriter, req *http.Request) {
        hash := mux.Vars(req)["hash"]
-       log.Printf("%s %s", req.Method, hash)
 
        // Confirm that this user is an admin and has a token with unlimited scope.
        var tok = GetApiToken(req)