From ff1c0a3536bcd2c061abc094ea0290154c1dc80c Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Mon, 16 Mar 2020 17:23:54 +0000 Subject: [PATCH] Structured logging --- federationapi/routing/send.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index 27e155dfa..b73f54241 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -116,7 +116,7 @@ func (t *txnReq) processTransaction() (*gomatrixserverlib.RespSend, error) { results[e.EventID()] = gomatrixserverlib.PDUResult{ Error: err.Error(), } - util.GetLogger(t.context).Error("Failed to process incoming federation event, skipping. Event ID:", e.EventID(), " Err:", err) + util.GetLogger(t.context).WithError(err).WithField("event_id", e.EventID()).Warn("Failed to process incoming federation event, skipping it.") } else { results[e.EventID()] = gomatrixserverlib.PDUResult{} }