0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-14 16:46:50 +01:00

ircd:Ⓜ️:vm: Remove redundant strings in error log msg.

This commit is contained in:
Jason Volk 2020-06-04 17:55:36 -07:00
parent 9af12a26e3
commit 0d30c08c9f

View file

@ -443,14 +443,13 @@ catch(const m::error &e) // GENERAL MATRIX ERROR
return handle_error return handle_error
( (
*eval.opts, fault::GENERAL, *eval.opts, fault::GENERAL,
"execute %s %s :%s :%s :%s", "execute %s %s :%s :%s",
event.event_id? event.event_id?
string_view{event.event_id}: string_view{event.event_id}:
"<edu>"_sv, "<edu>"_sv,
eval.room_id? eval.room_id?
eval.room_id: eval.room_id:
"<edu>"_sv, "<edu>"_sv,
e.what(),
error[0], error[0],
error[1] error[1]
); );
@ -1059,10 +1058,9 @@ catch(const m::error &e)
{ {
log::derror log::derror
{ {
log, "%s hook:%s :%s :%s :%s", log, "%s hook:%s :%s :%s",
loghead(eval), loghead(eval),
hook.name(), hook.name(),
e.what(),
e.errcode(), e.errcode(),
e.errstr(), e.errstr(),
}; };