mirror of
https://github.com/moby/moby.git
synced 2025-07-30 18:23:29 +03: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:
@ -13,7 +13,6 @@ import (
|
|||||||
"github.com/docker/distribution/registry/api/errcode"
|
"github.com/docker/distribution/registry/api/errcode"
|
||||||
"github.com/docker/docker/api"
|
"github.com/docker/docker/api"
|
||||||
"github.com/docker/docker/pkg/version"
|
"github.com/docker/docker/pkg/version"
|
||||||
"github.com/docker/docker/utils"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// APIVersionKey is the client's requested API version.
|
// APIVersionKey is the client's requested API version.
|
||||||
@ -155,7 +154,6 @@ func WriteError(w http.ResponseWriter, err error) {
|
|||||||
statusCode = http.StatusInternalServerError
|
statusCode = http.StatusInternalServerError
|
||||||
}
|
}
|
||||||
|
|
||||||
logrus.WithFields(logrus.Fields{"statusCode": statusCode, "err": utils.GetErrorMessage(err)}).Error("HTTP Error")
|
|
||||||
http.Error(w, errMsg, statusCode)
|
http.Error(w, errMsg, statusCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user