Browse code

remove unnecessary logs from daemon

if daemon encounters removing-file error. It will record two
similar logs as following . The later is meaningful for client, But not for
daemon. So remove it.

Signed-off-by: Liu Hua <sdu.liu@huawei.com>

Liu Hua authored on 2015/11/10 18:11:00
Showing 1 changed files
... ...
@@ -13,7 +13,6 @@ import (
13 13
 	"github.com/docker/distribution/registry/api/errcode"
14 14
 	"github.com/docker/docker/api"
15 15
 	"github.com/docker/docker/pkg/version"
16
-	"github.com/docker/docker/utils"
17 16
 )
18 17
 
19 18
 // APIVersionKey is the client's requested API version.
... ...
@@ -155,7 +154,6 @@ func WriteError(w http.ResponseWriter, err error) {
155 155
 		statusCode = http.StatusInternalServerError
156 156
 	}
157 157
 
158
-	logrus.WithFields(logrus.Fields{"statusCode": statusCode, "err": utils.GetErrorMessage(err)}).Error("HTTP Error")
159 158
 	http.Error(w, errMsg, statusCode)
160 159
 }
161 160