Skip to content

Commit

Permalink
Bring back some startup logging
Browse files Browse the repository at this point in the history
  • Loading branch information
aivve committed Jul 24, 2022
1 parent ebd3cb1 commit ce41796
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/Daemon/Daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,13 @@ int main(int argc, char* argv[])
dch.start_handling();
}

std::string ssl_info = "";
if (rpcConfig.isEnabledSSL()) ssl_info += ", SSL on address " + rpcConfig.getBindAddressSSL();
logger(INFO) << "Starting core RPC server on address " << rpcConfig.getBindAddress() << ssl_info;

rpcServer.start();

logger(INFO) << "Core rpc server started ok";
logger(INFO) << "Core RPC server started OK";


std::cout << ENDL << "**********************************************************************" << ENDL
Expand Down Expand Up @@ -437,7 +441,7 @@ int main(int argc, char* argv[])
dch.stop_handling();

//stop components
logger(INFO) << "Stopping core rpc server...";
logger(INFO) << "Stopping core RPC server...";
rpcServer.stop();

//deinitialize components
Expand Down
6 changes: 4 additions & 2 deletions src/P2p/NetNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,17 +585,19 @@ namespace CryptoNote
//-----------------------------------------------------------------------------------

bool NodeServer::run() {
logger(INFO) << "Starting NodeServer...";
logger(INFO) << "Starting p2p NodeServer...";

m_workingContextGroup.spawn(std::bind(&NodeServer::acceptLoop, this));
m_workingContextGroup.spawn(std::bind(&NodeServer::connectionWorker, this));
m_workingContextGroup.spawn(std::bind(&NodeServer::onIdle, this));
m_workingContextGroup.spawn(std::bind(&NodeServer::timedSyncLoop, this));
m_workingContextGroup.spawn(std::bind(&NodeServer::timeoutLoop, this));

logger(INFO) << "p2p NodeServer started OK";

m_stopEvent.wait();

logger(INFO) << "Stopping NodeServer and its " << m_connections.size() << " connections...";
logger(INFO) << "Stopping p2p NodeServer and its " << m_connections.size() << " connections...";
m_workingContextGroup.interrupt();
m_workingContextGroup.wait();

Expand Down

0 comments on commit ce41796

Please sign in to comment.