Skip to content

Commit 7ffb0b2

Browse files
authored
Merge pull request ipfs/kubo#6832 from ipfs/chore/update-deps
chore(dep): update deps This commit was moved from ipfs/kubo@37e0a60
2 parents 40fe57b + 5a0b56d commit 7ffb0b2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

gateway/core/corehttp/commands.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var defaultLocalhostOrigins = []string{
4747
func addCORSFromEnv(c *cmdsHttp.ServerConfig) {
4848
origin := os.Getenv(originEnvKey)
4949
if origin != "" {
50-
log.Warning(originEnvKeyDeprecate)
50+
log.Warn(originEnvKeyDeprecate)
5151
c.AppendAllowedOrigins(origin)
5252
}
5353
}

gateway/core/corehttp/gateway_handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ func webError(w http.ResponseWriter, message string, err error, defaultCode int)
610610
func webErrorWithCode(w http.ResponseWriter, message string, err error, code int) {
611611
http.Error(w, fmt.Sprintf("%s: %s", message, err), code)
612612
if code >= 500 {
613-
log.Warningf("server error: %s: %s", err)
613+
log.Warnf("server error: %s: %s", err)
614614
}
615615
}
616616

gateway/core/corehttp/logs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func LogOption() ServeOption {
5050
w.WriteHeader(200)
5151
wnf, errs := newWriteErrNotifier(w)
5252
lwriter.WriterGroup.AddWriter(wnf)
53-
log.Event(n.Context(), "log API client connected")
53+
log.Event(n.Context(), "log API client connected") //nolint deprecated
5454
<-errs
5555
})
5656
return mux, nil

0 commit comments

Comments
 (0)