Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
swarm/api: Remove sprintf in error
Browse files Browse the repository at this point in the history
  • Loading branch information
nolash committed Jun 8, 2018
1 parent 5769ce1 commit 20439d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swarm/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func (self *Api) Get(manifestAddr storage.Address, path string) (reader storage.
if err != nil {
apiGetInvalid.Inc(1)
status = http.StatusUnprocessableEntity
log.Warn(fmt.Sprintf("invalid resource multihash: %v", err))
log.Warn("invalid resource multihash", "err", err)
return reader, mimeType, status, nil, err
}
manifestAddr = storage.Address(decodedMultihash)
Expand Down

0 comments on commit 20439d8

Please sign in to comment.