mirror of
https://github.com/Xahau/xahaud.git
synced 2026-06-08 19:26:35 +00:00
Add logging for exceptions: (#4400)
Log exception messages at several locations. Previously, these were locations where an exception was caught, but the exception message was not logged. Logging the exception messages can be useful for analysis or debugging. The additional logging could have a small negative performance impact. Fix #3213.
This commit is contained in:
@@ -193,13 +193,14 @@ SHAMap::finishFetch(
|
||||
canonicalize(hash, node);
|
||||
return node;
|
||||
}
|
||||
|
||||
catch (SHAMapMissingNode const& e)
|
||||
{
|
||||
JLOG(journal_.warn()) << "Missing node: " << hash << " : " << e.what();
|
||||
}
|
||||
catch (std::runtime_error const& e)
|
||||
{
|
||||
JLOG(journal_.warn()) << e.what();
|
||||
JLOG(journal_.warn()) << __func__ << " : " << e.what();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user