still fixing up things

This commit is contained in:
jed
2012-10-24 13:20:14 -07:00
parent 17e6d714f1
commit 5b8ac06fb6
2 changed files with 23 additions and 15 deletions

View File

@@ -1250,7 +1250,7 @@ Json::Value RPCHandler::doProfile(const Json::Value &params)
if (iArgs >= 8 && "false" != params[7u].asString())
bSubmit = true;
Log::setMinSeverity(lsFATAL);
Log::setMinSeverity(lsFATAL,true);
boost::posix_time::ptime ptStart(boost::posix_time::microsec_clock::local_time());
@@ -2617,7 +2617,7 @@ Json::Value RPCHandler::doLogLevel(const Json::Value& params)
LogSeverity sv = Log::stringToSeverity(params[0u].asString());
if (sv == lsINVALID)
return rpcError(rpcINVALID_PARAMS);
Log::setMinSeverity(sv);
Log::setMinSeverity(sv,true);
return rpcError(rpcSUCCESS);
}
@@ -2627,7 +2627,7 @@ Json::Value RPCHandler::doLogLevel(const Json::Value& params)
if (sv == lsINVALID)
return rpcError(rpcINVALID_PARAMS);
if (params[2u].asString() == "base")
Log::setMinSeverity(sv);
Log::setMinSeverity(sv,false);
else if (!LogPartition::setSeverity(params[0u].asString(), sv))
return rpcError(rpcINVALID_PARAMS);
return rpcError(rpcSUCCESS);