summaryrefslogtreecommitdiff
path: root/src/authorization/check_service.rs
diff options
context:
space:
mode:
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"),
)))