Make -q more quiet.

This commit is contained in:
Arthur Britto
2013-01-21 17:02:15 -08:00
parent 6aa9a3fc90
commit ab6ab491eb
2 changed files with 7 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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());