summaryrefslogtreecommitdiff
path: root/src/authorization/server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/authorization/server.rs')
-rw-r--r--src/authorization/server.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/authorization/server.rs b/src/authorization/server.rs
index de7df580..57712848 100644
--- a/src/authorization/server.rs
+++ b/src/authorization/server.rs
@@ -10,10 +10,8 @@ pub struct Server {
impl Server {
pub fn new() -> Result<Server, Box<dyn std::error::Error>> {
let (_health_reporter, health_service) = tonic_health::server::health_reporter();
- let authorization_service = AuthorizationServer::with_interceptor(
- CheckService::new(Arc::new(CedarAuthorizer::default())),
- logging_interceptor,
- );
+ let authorization_service =
+ AuthorizationServer::new(CheckService::new(Arc::new(CedarAuthorizer::default())));
Ok(Self::new_with(|mut builder| {
builder
@@ -40,8 +38,3 @@ impl Default for Server {
Self::new().unwrap()
}
}
-
-fn logging_interceptor<T>(request: tonic::Request<T>) -> Result<tonic::Request<T>, tonic::Status> {
- log::info!("gRPC request received");
- Ok(request)
-}