From 41389d2f186672f6d9d2e183a6f650a3e2749f48 Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Wed, 11 Sep 2019 15:33:21 +0300 Subject: [PATCH] Less severe log message for p2p server connection 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. --- jormungandr/src/network/grpc/server.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jormungandr/src/network/grpc/server.rs b/jormungandr/src/network/grpc/server.rs index dce9a3713b..983f1fd0b5 100644 --- a/jormungandr/src/network/grpc/server.rs +++ b/jormungandr/src/network/grpc/server.rs @@ -50,9 +50,9 @@ pub fn run_listen_socket( let conn = server.serve(stream); let conn_logger = fold_logger.clone(); - tokio::spawn( - conn.map_err(move |e| error!(conn_logger, "server error: {:?}", e)), - ); + tokio::spawn(conn.map_err(move |e| { + warn!(conn_logger, "incoming P2P connection error: {:?}", e) + })); future::ok(server) })