Skip to content

Commit

Permalink
revert: more inadvertent changes not part of this PR
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmoran committed Dec 29, 2023
1 parent f116f6d commit f07835a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ require (
github.com/gobuffalo/httptest v1.5.2
github.com/gobuffalo/pop/v6 v6.1.1
github.com/gofrs/uuid v4.4.0+incompatible
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1
github.com/julienschmidt/httprouter v1.3.0
github.com/luna-duclos/instrumentedsql v1.1.3
Expand Down
8 changes: 4 additions & 4 deletions internal/driver/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

"github.com/ory/x/otelx/semconv"

grpcRecovery "github.com/grpc-ecosystem/go-grpc-middleware/recovery"
grpcRecovery "github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/recovery"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

Expand All @@ -32,7 +32,7 @@ import (

"github.com/ory/x/logrusx"

grpcLogrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
grpcLogrus "github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/logging"
"github.com/julienschmidt/httprouter"
"github.com/ory/herodot"
"github.com/ory/x/reqlog"
Expand Down Expand Up @@ -457,7 +457,7 @@ func (r *RegistryDefault) unaryInterceptors(ctx context.Context) []grpc.UnarySer
is = append(is, r.defaultUnaryInterceptors...)
is = append(is,
herodot.UnaryErrorUnwrapInterceptor,
grpcLogrus.UnaryServerInterceptor(r.l.Entry),
grpcLogrus.UnaryServerInterceptor(InterceptorLogger(r.l.Logrus())),
r.pmm.UnaryServerInterceptor,
)
if r.sqaService != nil {
Expand All @@ -476,7 +476,7 @@ func (r *RegistryDefault) streamInterceptors(ctx context.Context) []grpc.StreamS
is = append(is, r.defaultStreamInterceptors...)
is = append(is,
herodot.StreamErrorUnwrapInterceptor,
grpcLogrus.StreamServerInterceptor(r.l.Entry),
grpcLogrus.StreamServerInterceptor(InterceptorLogger(r.l.Logrus())),
r.pmm.StreamServerInterceptor,
)
if r.sqaService != nil {
Expand Down

0 comments on commit f07835a

Please sign in to comment.