mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 15:30:52 +01:00
ircd:Ⓜ️:typing: Log exceptions coming through the vm.eval edu handler.
This commit is contained in:
parent
1e96e34b54
commit
1b49d001b2
1 changed files with 16 additions and 0 deletions
|
@ -85,6 +85,7 @@ _m_typing_eval
|
|||
void
|
||||
handle_edu_m_typing(const m::event &event,
|
||||
m::vm::eval &eval)
|
||||
try
|
||||
{
|
||||
const json::object &content
|
||||
{
|
||||
|
@ -93,6 +94,21 @@ handle_edu_m_typing(const m::event &event,
|
|||
|
||||
_handle_edu_m_typing(event, content);
|
||||
}
|
||||
catch(const ctx::interrupted &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
log::derror
|
||||
{
|
||||
typing_log, "m.typing from %s :%s",
|
||||
json::get<"origin"_>(event),
|
||||
e.what(),
|
||||
};
|
||||
|
||||
throw;
|
||||
}
|
||||
|
||||
void
|
||||
_handle_edu_m_typing(const m::event &event,
|
||||
|
|
Loading…
Reference in a new issue