mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Implement a debug Journal
This commit is contained in:
@@ -51,6 +51,9 @@ STUInt8::getText () const
|
||||
|
||||
if (transResultInfo (static_cast<TER> (value_), token, human))
|
||||
return human;
|
||||
|
||||
JLOG (debugJournal().warning)
|
||||
<< "Unknown result code in metadata: " << value_;
|
||||
}
|
||||
|
||||
return beast::lexicalCastThrow <std::string> (value_);
|
||||
@@ -66,9 +69,9 @@ STUInt8::getJson (int) const
|
||||
|
||||
if (transResultInfo (static_cast<TER> (value_), token, human))
|
||||
return token;
|
||||
else
|
||||
WriteLog (lsWARNING, STBase)
|
||||
<< "Unknown result code in metadata: " << value_;
|
||||
|
||||
JLOG (debugJournal().warning)
|
||||
<< "Unknown result code in metadata: " << value_;
|
||||
}
|
||||
|
||||
return value_;
|
||||
|
||||
Reference in New Issue
Block a user