mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
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:
@@ -64,7 +64,7 @@ STPathSet::STPathSet (SerialIter& sit, SField const& name)
|
||||
{
|
||||
if (path.empty ())
|
||||
{
|
||||
JLOG (debugLog())
|
||||
JLOG (debugLog().error())
|
||||
<< "Empty path in pathset";
|
||||
Throw<std::runtime_error> ("empty path");
|
||||
}
|
||||
@@ -77,7 +77,7 @@ STPathSet::STPathSet (SerialIter& sit, SField const& name)
|
||||
}
|
||||
else if (iType & ~STPathElement::typeAll)
|
||||
{
|
||||
JLOG (debugLog())
|
||||
JLOG (debugLog().error())
|
||||
<< "Bad path element " << iType << " in pathset";
|
||||
Throw<std::runtime_error> ("bad path element");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user