From 2fad636ed24a21b05ae3b3d90a23d05e525dbdfc Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sat, 5 May 2012 16:50:39 -0700 Subject: [PATCH] Report when interfaces are off. --- src/Application.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Application.cpp b/src/Application.cpp index c43985ba1..5bde97d88 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -83,7 +83,11 @@ void Application::run() if(!theConfig.PEER_IP.empty() && theConfig.PEER_PORT) { mPeerDoor=new PeerDoor(mIOService); - }//else BOOST_LOG_TRIVIAL(info) << "No Peer Port set. Not listening for connections."; + } + else + { + std::cerr << "Peer interface: disabled" << std::endl; + } // // Allow RPC connections. @@ -91,7 +95,11 @@ void Application::run() if(!theConfig.RPC_IP.empty() && theConfig.RPC_PORT) { mRPCDoor=new RPCDoor(mIOService); - }//else BOOST_LOG_TRIVIAL(info) << "No RPC Port set. Not listening for commands."; + } + else + { + std::cerr << "RPC interface: disabled" << std::endl; + } // // Begin connectting to network.