mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Make -q more quiet.
This commit is contained in:
@@ -30,7 +30,8 @@ void Wallet::start()
|
||||
throw std::runtime_error("unable to retrieve new node identity.");
|
||||
}
|
||||
|
||||
std::cerr << "NodeIdentity: " << mNodePublicKey.humanNodePublic() << std::endl;
|
||||
if (!theConfig.QUIET)
|
||||
std::cerr << "NodeIdentity: " << mNodePublicKey.humanNodePublic() << std::endl;
|
||||
|
||||
theApp->getUNL().start();
|
||||
}
|
||||
@@ -71,7 +72,8 @@ bool Wallet::nodeIdentityLoad()
|
||||
|
||||
// Create and store a network identity.
|
||||
bool Wallet::nodeIdentityCreate() {
|
||||
std::cerr << "NodeIdentity: Creating." << std::endl;
|
||||
if (!theConfig.QUIET)
|
||||
std::cerr << "NodeIdentity: Creating." << std::endl;
|
||||
|
||||
//
|
||||
// Generate the public and private key
|
||||
@@ -116,7 +118,8 @@ bool Wallet::nodeIdentityCreate() {
|
||||
% sqlEscape(strDh1024)));
|
||||
// XXX Check error result.
|
||||
|
||||
std::cerr << "NodeIdentity: Created." << std::endl;
|
||||
if (!theConfig.QUIET)
|
||||
std::cerr << "NodeIdentity: Created." << std::endl;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ void startServer()
|
||||
const Json::Value& jvCommand = theConfig.RPC_STARTUP[i];
|
||||
|
||||
if (!theConfig.QUIET)
|
||||
cerr << "Startup RPC: " << jvCommand << endl;
|
||||
std::cerr << "Startup RPC: " << jvCommand << std::endl;
|
||||
|
||||
RPCHandler rhHandler(&theApp->getOPs());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user