mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
6f2c6111d4
commit
343e15fa3f
1 changed files with 0 additions and 2 deletions
|
@ -13,7 +13,6 @@ import (
|
|||
"github.com/docker/distribution/registry/api/errcode"
|
||||
"github.com/docker/docker/api"
|
||||
"github.com/docker/docker/pkg/version"
|
||||
"github.com/docker/docker/utils"
|
||||
)
|
||||
|
||||
// APIVersionKey is the client's requested API version.
|
||||
|
@ -155,7 +154,6 @@ func WriteError(w http.ResponseWriter, err error) {
|
|||
statusCode = http.StatusInternalServerError
|
||||
}
|
||||
|
||||
logrus.WithFields(logrus.Fields{"statusCode": statusCode, "err": utils.GetErrorMessage(err)}).Error("HTTP Error")
|
||||
http.Error(w, errMsg, statusCode)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue