Skip to content

Commit

Permalink
Remove unneeded log entries that caused noise
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc committed Jan 27, 2021
1 parent 24c7a2d commit fb3daf6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 119 deletions.
104 changes: 0 additions & 104 deletions core/bin/zksync_api/src/api_server/loggers.rs

This file was deleted.

1 change: 0 additions & 1 deletion core/bin/zksync_api/src/api_server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use crate::signature_checker;
mod admin_server;
mod event_notify;
mod helpers;
mod loggers;
mod rest;
pub mod rpc_server;
mod rpc_subscriptions;
Expand Down
5 changes: 1 addition & 4 deletions core/bin/zksync_api/src/api_server/rest/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use actix_cors::Cors;
use actix_web::{middleware, web, App, HttpResponse, HttpServer};
use actix_web::{web, App, HttpResponse, HttpServer};
use futures::channel::mpsc;
use std::net::SocketAddr;
use zksync_storage::ConnectionPool;
Expand All @@ -23,8 +23,6 @@ async fn start_server(
sign_verifier: mpsc::Sender<VerifyTxSignatureRequest>,
bind_to: SocketAddr,
) {
let logger_format = crate::api_server::loggers::rest::get_logger_format();

HttpServer::new(move || {
let api_v01 = api_v01.clone();

Expand All @@ -39,7 +37,6 @@ async fn start_server(
};

App::new()
.wrap(middleware::Logger::new(&logger_format))
.wrap(Cors::new().send_wildcard().max_age(3600).finish())
.service(api_v01.into_scope())
.service(api_v1_scope)
Expand Down
1 change: 0 additions & 1 deletion core/bin/zksync_api/src/api_server/rpc_server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ pub fn start_rpc_server(
rpc_app.extend(&mut io);

let server = ServerBuilder::new(io)
.request_middleware(super::loggers::http_rpc::request_middleware)
.threads(super::THREADS_PER_SERVER)
.start_http(&addr)
.unwrap();
Expand Down
6 changes: 0 additions & 6 deletions core/bin/zksync_api/src/api_server/rpc_server/rpc_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ impl RpcApp {
)
.await?;

vlog::debug!(
"account_info: address {}, total request processing {}ms",
&address,
start.elapsed().as_millis()
);

metrics::histogram!("api.rpc.account_info", start.elapsed());
Ok(AccountInfoResp {
address,
Expand Down
1 change: 0 additions & 1 deletion core/bin/zksync_api/src/api_server/rpc_subscriptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ pub fn start_ws_server(
io,
|context: &RequestContext| Arc::new(Session::new(context.sender())),
)
.request_middleware(super::loggers::ws_rpc::request_middleware)
.max_connections(1000)
.event_loop_executor(task_executor.executor())
.start(&addr)
Expand Down
8 changes: 6 additions & 2 deletions core/bin/zksync_core/src/mempool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,12 @@ impl MempoolBlocksHandler {
.await;
let (_chunks_left, txs) = self.prepare_tx_for_block(chunks_left).await;

vlog::debug!("Proposed priority ops for block: {:#?}", priority_ops);
vlog::debug!("Proposed txs for block: {:#?}", txs);
if !priority_ops.is_empty() {
vlog::debug!("Proposed priority ops for block: {:?}", priority_ops);
}
if !txs.is_empty() {
vlog::debug!("Proposed txs for block: {:?}", txs);
}
metrics::histogram!("mempool.propose_new_block", start.elapsed());
ProposedBlock { priority_ops, txs }
}
Expand Down

0 comments on commit fb3daf6

Please sign in to comment.