Skip to content

Commit

Permalink
Get the logger in the grpcMDResponseToFileInfo func
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrizio Furano committed Nov 2, 2023
1 parent 4ec0eb3 commit 0d580e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/eosclient/eosgrpc/eosgrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1578,6 +1578,8 @@ func (c *Client) grpcMDResponseToFileInfo(st *erpc.MDResponse) (*eosclient.FileI
}
fi := new(eosclient.FileInfo)

log := appctx.GetLogger(ctx)

if st.Type == erpc.TYPE_CONTAINER {
fi.IsDir = true
fi.Inode = st.Cmd.Inode
Expand Down

0 comments on commit 0d580e5

Please sign in to comment.