From 0d30c08c9fecc91ebb0f23f0c8984c7538ebbb86 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 4 Jun 2020 17:55:36 -0700 Subject: [PATCH] ircd::m::vm: Remove redundant strings in error log msg. --- matrix/vm_execute.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/matrix/vm_execute.cc b/matrix/vm_execute.cc index 11c2db7da..40ee4af65 100644 --- a/matrix/vm_execute.cc +++ b/matrix/vm_execute.cc @@ -443,14 +443,13 @@ catch(const m::error &e) // GENERAL MATRIX ERROR return handle_error ( *eval.opts, fault::GENERAL, - "execute %s %s :%s :%s :%s", + "execute %s %s :%s :%s", event.event_id? string_view{event.event_id}: ""_sv, eval.room_id? eval.room_id: ""_sv, - e.what(), error[0], error[1] ); @@ -1059,10 +1058,9 @@ catch(const m::error &e) { log::derror { - log, "%s hook:%s :%s :%s :%s", + log, "%s hook:%s :%s :%s", loghead(eval), hook.name(), - e.what(), e.errcode(), e.errstr(), };