Add log_exc_printf() with stack trace

This commit is contained in:
Michael Davidsaver
2020-04-03 10:21:46 -07:00
parent 5f244c1b88
commit facb18ae00
11 changed files with 38 additions and 19 deletions
+3 -3
View File
@@ -84,7 +84,7 @@ struct SubscriptionImpl : public OperationBase, public Subscription
try {
event(*this);
}catch(std::exception& e){
log_err_printf(io, "Unhandled user exception in Monitor %s %s : %s\n",
log_exc_printf(io, "Unhandled user exception in Monitor %s %s : %s\n",
__func__, typeid (e).name(), e.what());
}
}
@@ -312,8 +312,8 @@ struct SubscriptionImpl : public OperationBase, public Subscription
try {
static_cast<SubscriptionImpl*>(raw)->tickAck();
}catch(std::exception& e) {
log_crit_printf(io, "Unhandled exception in %s %s : %s\n",
__func__, typeid (e).name(), e.what());
log_exc_printf(io, "Unhandled exception in %s %s : %s\n",
__func__, typeid (e).name(), e.what());
}
}
};