Skip to content

Commit

Permalink
Less severe log message for p2p server connection
Browse files Browse the repository at this point in the history
Use the Warning level reporting errors for incoming protocol
connections, also change the message to refer to the connection
to avoid perception that it is the internal error of the server.
  • Loading branch information
Mikhail Zabaluev committed Sep 11, 2019
1 parent 046b35b commit 41389d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jormungandr/src/network/grpc/server.rs
Expand Up @@ -50,9 +50,9 @@ pub fn run_listen_socket(


let conn = server.serve(stream); let conn = server.serve(stream);
let conn_logger = fold_logger.clone(); let conn_logger = fold_logger.clone();
tokio::spawn( tokio::spawn(conn.map_err(move |e| {
conn.map_err(move |e| error!(conn_logger, "server error: {:?}", e)), warn!(conn_logger, "incoming P2P connection error: {:?}", e)
); }));


future::ok(server) future::ok(server)
}) })
Expand Down

0 comments on commit 41389d2

Please sign in to comment.