Skip to content

Commit

Permalink
Merge pull request ipfs/kubo#6832 from ipfs/chore/update-deps
Browse files Browse the repository at this point in the history
chore(dep): update deps

This commit was moved from ipfs/kubo@37e0a60
  • Loading branch information
Stebalien authored Jan 29, 2020
2 parents 40fe57b + 5a0b56d commit 7ffb0b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gateway/core/corehttp/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var defaultLocalhostOrigins = []string{
func addCORSFromEnv(c *cmdsHttp.ServerConfig) {
origin := os.Getenv(originEnvKey)
if origin != "" {
log.Warning(originEnvKeyDeprecate)
log.Warn(originEnvKeyDeprecate)
c.AppendAllowedOrigins(origin)
}
}
Expand Down
2 changes: 1 addition & 1 deletion gateway/core/corehttp/gateway_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ func webError(w http.ResponseWriter, message string, err error, defaultCode int)
func webErrorWithCode(w http.ResponseWriter, message string, err error, code int) {
http.Error(w, fmt.Sprintf("%s: %s", message, err), code)
if code >= 500 {
log.Warningf("server error: %s: %s", err)
log.Warnf("server error: %s: %s", err)
}
}

Expand Down
2 changes: 1 addition & 1 deletion gateway/core/corehttp/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func LogOption() ServeOption {
w.WriteHeader(200)
wnf, errs := newWriteErrNotifier(w)
lwriter.WriterGroup.AddWriter(wnf)
log.Event(n.Context(), "log API client connected")
log.Event(n.Context(), "log API client connected") //nolint deprecated
<-errs
})
return mux, nil
Expand Down

0 comments on commit 7ffb0b2

Please sign in to comment.