diff options
Diffstat (limited to 'pkg/authz/server.go')
| -rw-r--r-- | pkg/authz/server.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pkg/authz/server.go b/pkg/authz/server.go index 05580b0..24d6b0c 100644 --- a/pkg/authz/server.go +++ b/pkg/authz/server.go @@ -28,12 +28,8 @@ func New(ctx context.Context, options ...grpc.ServerOption) *Server { )...) connection := Connection.From(ctx) + if x.IsZero(connection) { - pls.LogNow(ctx, log.Fields{"remote-authzd": "not connected"}) - pls.LogNow(ctx, log.Fields{"authzd": map[string]string{ - "target": "unknown", - "state": "invalid", - }}) auth.RegisterAuthorizationServer(server, NewCheckService(nil)) } else { pls.LogNow(ctx, log.Fields{"authzd": map[string]string{ |
