Make debugLog() return a beast::Journal (RIPD-1209):

Previously, writes using debugLog() tagged every entry with
"TRC:".  Now users of debugLog() must specify the severity
level they want their information logged at.
This commit is contained in:
Scott Schurr
2016-06-27 18:39:17 -07:00
committed by seelabs
parent 8f5449dafb
commit 40678e9a78
12 changed files with 24 additions and 24 deletions

View File

@@ -76,7 +76,7 @@ STArray::STArray (SerialIter& sit, SField const& f)
if ((type == STI_OBJECT) && (field == 1))
{
JLOG (debugLog()) <<
JLOG (debugLog().error()) <<
"Encountered array with end of object marker";
Throw<std::runtime_error> ("Illegal terminator in array");
}
@@ -85,14 +85,14 @@ STArray::STArray (SerialIter& sit, SField const& f)
if (fn.isInvalid ())
{
JLOG (debugLog()) <<
JLOG (debugLog().error()) <<
"Unknown field: " << type << "/" << field;
Throw<std::runtime_error> ("Unknown field");
}
if (fn.fieldType != STI_OBJECT)
{
JLOG (debugLog()) <<
JLOG (debugLog().error()) <<
"Array contains non-object";
Throw<std::runtime_error> ("Non-object in array");
}