diff --git a/changelog/unreleased/eos-log-app.md b/changelog/unreleased/eos-log-app.md new file mode 100644 index 0000000000..78647347c8 --- /dev/null +++ b/changelog/unreleased/eos-log-app.md @@ -0,0 +1,3 @@ +Enhancement: log app when creating EOS gRPC requests + +https://github.com/cs3org/reva/pull/5014 diff --git a/pkg/eosclient/eosgrpc/eosgrpc.go b/pkg/eosclient/eosgrpc/eosgrpc.go index c2ca7a8d78..72c22a4974 100644 --- a/pkg/eosclient/eosgrpc/eosgrpc.go +++ b/pkg/eosclient/eosgrpc/eosgrpc.go @@ -222,7 +222,7 @@ func (c *Client) getRespError(rsp *erpc.NSResponse, err error) error { // Common code to create and initialize a NSRequest. func (c *Client) initNSRequest(ctx context.Context, auth eosclient.Authorization, app string) (*erpc.NSRequest, error) { log := appctx.GetLogger(ctx) - log.Debug().Str("(uid,gid)", "("+auth.Role.UID+","+auth.Role.GID+")").Msg("New grpcNS req") + log.Debug().Str("(uid,gid)", "("+auth.Role.UID+","+auth.Role.GID+")").Str("app", app).Msg("New grpcNS req") rq := new(erpc.NSRequest) rq.Role = new(erpc.RoleId)