Skip to content

Commit

Permalink
Removed some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
luna committed Dec 26, 2023
1 parent fea7b67 commit 9dd9054
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions core/src/ssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ impl AllowAny {

impl ClientCertVerifier for AllowAny {
fn client_auth_root_subjects(&self) -> &[DistinguishedName] {
info!("In Farmer client_auth_root_subjects");
&[]
}
fn client_auth_mandatory(&self) -> bool {
Expand All @@ -53,7 +52,6 @@ impl ClientCertVerifier for AllowAny {
_intermediates: &[rustls::Certificate],
_now: SystemTime,
) -> Result<ClientCertVerified, rustls::Error> {
info!("In Farmer verify_client_cert");
Ok(ClientCertVerified::assertion())
}
}
Expand Down
3 changes: 1 addition & 2 deletions servers/src/rpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use hyper::server::conn::http1::Builder;
use hyper::service::service_fn;
use hyper::{Request, Response};
use hyper_util::rt::TokioIo;
use log::{error, info};
use log::{error};
use rustls::{RootCertStore, ServerConfig};
use std::env;
use std::io::{Error, ErrorKind};
Expand Down Expand Up @@ -77,7 +77,6 @@ impl RpcServer {
Ok((stream, _)) => {
match acceptor.accept(stream).await {
Ok(stream) => {
info!("New Client Connection");
let server = server.clone();
let service = service_fn(move |req| {
let server = server.clone();
Expand Down
3 changes: 1 addition & 2 deletions servers/src/websocket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use hyper::service::service_fn;
use hyper::{Request, Response};
use hyper_tungstenite::{is_upgrade_request, upgrade, HyperWebsocket};
use hyper_util::rt::TokioIo;
use log::{debug, error, info};
use log::{debug, error};
use rustls::{Certificate, PrivateKey, RootCertStore, ServerConfig};
use std::collections::HashMap;
use std::io::{Error, ErrorKind};
Expand Down Expand Up @@ -122,7 +122,6 @@ impl WebsocketServer {
res = listener.accept() => {
match res {
Ok((stream, _)) => {
info!("New Client Connection");
let peers = peers.clone();
let message_handlers = handlers.clone();
let stream = acceptor.accept(stream).await?;
Expand Down

0 comments on commit 9dd9054

Please sign in to comment.