diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-02 11:05:04 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-02 11:05:04 -0600 |
| commit | dbb213d385314e1f135d57e174ae8e41ff4b5329 (patch) | |
| tree | 75e72930a397884f7804e141969e6631838ac2c7 /src/authorization/check_service.rs | |
| parent | 12550869b5f9c50a6ce6c9ab54eee456b32057da (diff) | |
chore: remove logging interceptor
Diffstat (limited to 'src/authorization/check_service.rs')
| -rw-r--r-- | src/authorization/check_service.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/authorization/check_service.rs b/src/authorization/check_service.rs index e66a0e7b..f8c7577f 100644 --- a/src/authorization/check_service.rs +++ b/src/authorization/check_service.rs @@ -22,13 +22,9 @@ impl envoy_types::ext_authz::v3::pb::Authorization for CheckService { &self, request: Request<CheckRequest>, ) -> Result<Response<CheckResponse>, Status> { - let request = request.into_inner(); - - if self.authorizer.authorize(request) { - log::info!("OK"); + if self.authorizer.authorize(request.into_inner()) { Ok(Response::new(CheckResponse::with_status(Status::ok("OK")))) } else { - log::info!("Unauthorized"); Ok(Response::new(CheckResponse::with_status( Status::unauthenticated("Unauthorized"), ))) |
