diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-02 12:09:45 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-02 12:09:45 -0600 |
| commit | 6e25870046586fea54ba74ae1e673d2ad22eaeae (patch) | |
| tree | d363a6898da74edc0516aff39483d08d4f7a9586 /src/authorization | |
| parent | 105b4b2c4af3716e128af84142f2ff0a3442855d (diff) | |
chore: add minimal logging
Diffstat (limited to 'src/authorization')
| -rw-r--r-- | src/authorization/check_service.rs | 2 |
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"), ))) |
