[#607] *: Use zap.Stringer() where possible
Semantic patch: ``` @@ var f expression var t expression var a expression @@ f( ..., - zap.String(t, a.String()), + zap.Stringer(t, a), ..., ) ``` Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
a8de37c8a2
commit
e604a3d749
5 changed files with 6 additions and 6 deletions
|
@ -89,7 +89,7 @@ func (s *Service) verifyClient(req message, cid cidSDK.ID, rawBearer []byte, op
|
|||
if !basicACL.AllowedBearerRules(op) {
|
||||
s.log.Debug(logs.TreeBearerPresentedButNotAllowedByACL,
|
||||
zap.String("cid", cid.EncodeToString()),
|
||||
zap.String("op", op.String()),
|
||||
zap.Stringer("op", op),
|
||||
)
|
||||
} else {
|
||||
useBearer = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue