summaryrefslogtreecommitdiff
path: root/src/authorization/check_service.rs
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-02 11:05:04 -0600
committermo khan <mo@mokhan.ca>2025-07-02 11:05:04 -0600
commitdbb213d385314e1f135d57e174ae8e41ff4b5329 (patch)
tree75e72930a397884f7804e141969e6631838ac2c7 /src/authorization/check_service.rs
parent12550869b5f9c50a6ce6c9ab54eee456b32057da (diff)
chore: remove logging interceptor
Diffstat (limited to 'src/authorization/check_service.rs')
-rw-r--r--src/authorization/check_service.rs6
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"),
)))