summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-02 12:09:45 -0600
committermo khan <mo@mokhan.ca>2025-07-02 12:09:45 -0600
commit6e25870046586fea54ba74ae1e673d2ad22eaeae (patch)
treed363a6898da74edc0516aff39483d08d4f7a9586
parent105b4b2c4af3716e128af84142f2ff0a3442855d (diff)
chore: add minimal logging
-rw-r--r--src/authorization/check_service.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/authorization/check_service.rs b/src/authorization/check_service.rs
index f8c7577f..57f7b5d5 100644
--- a/src/authorization/check_service.rs
+++ b/src/authorization/check_service.rs
@@ -23,8 +23,10 @@ impl envoy_types::ext_authz::v3::pb::Authorization for CheckService {
request: Request<CheckRequest>,
) -> Result<Response<CheckResponse>, Status> {
if self.authorizer.authorize(request.into_inner()) {
+ log::info!("OK");
Ok(Response::new(CheckResponse::with_status(Status::ok("OK"))))
} else {
+ log::info!("Unauthorized");
Ok(Response::new(CheckResponse::with_status(
Status::unauthenticated("Unauthorized"),
)))