Commit 8abbdb58 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

[2983] Pushed minor change to CalloutManager

parent 3b824115
......@@ -157,12 +157,13 @@ CalloutManager::callCallouts(int hook_index, CalloutHandle& callout_handle) {
.getName(current_hook_))
.arg(PointerConverter(i->second).dlsymPtr());
}
} catch (...) {
} catch (const std::exception& e) {
// Any exception, not just ones based on isc::Exception
LOG_ERROR(hooks_logger, HOOKS_CALLOUT_EXCEPTION)
.arg(current_library_)
.arg(ServerHooks::getServerHooks().getName(current_hook_))
.arg(PointerConverter(i->second).dlsymPtr());
.arg(PointerConverter(i->second).dlsymPtr())
.arg(e.what());
}
}
......
......@@ -44,7 +44,7 @@ is issued. It identifies the hook to which the callout is attached, the
index of the library (in the list of loaded libraries) that registered
it and the address of the callout. The error is otherwise ignored.
% HOOKS_CALLOUT_EXCEPTION exception thrown by callout on hook %1 registered by library with index %2 (callout address %3)
% HOOKS_CALLOUT_EXCEPTION exception thrown by callout on hook %1 registered by library with index %2 (callout address %3): %4
If a callout throws an exception when called, this error message is
issued. It identifies the hook to which the callout is attached, the
index of the library (in the list of loaded libraries) that registered
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment