Skip to content

Commit 343e15f

Browse files
committed
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>
1 parent 6f2c611 commit 343e15f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

api/server/httputils/httputils.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"github.com/docker/distribution/registry/api/errcode"
1414
"github.com/docker/docker/api"
1515
"github.com/docker/docker/pkg/version"
16-
"github.com/docker/docker/utils"
1716
)
1817

1918
// APIVersionKey is the client's requested API version.
@@ -155,7 +154,6 @@ func WriteError(w http.ResponseWriter, err error) {
155154
statusCode = http.StatusInternalServerError
156155
}
157156

158-
logrus.WithFields(logrus.Fields{"statusCode": statusCode, "err": utils.GetErrorMessage(err)}).Error("HTTP Error")
159157
http.Error(w, errMsg, statusCode)
160158
}
161159

0 commit comments

Comments
 (0)