From b0f209b91fad7a565161a9ab1573472f1a85316d Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Tue, 3 Jul 2018 17:47:07 +0100 Subject: [PATCH] Fix logging --- .../dendrite/appservice/storage/appservice_events_table.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/appservice/storage/appservice_events_table.go b/src/github.com/matrix-org/dendrite/appservice/storage/appservice_events_table.go index ab6848b43..7bff2c495 100644 --- a/src/github.com/matrix-org/dendrite/appservice/storage/appservice_events_table.go +++ b/src/github.com/matrix-org/dendrite/appservice/storage/appservice_events_table.go @@ -120,8 +120,9 @@ func (s *eventsStatements) selectEventsByApplicationServiceID( defer func() { err = eventRowsCurr.Close() if err != nil { - log.WithError(err).Fatalf("Appservice %s unable to select new events to send", - applicationServiceID) + log.WithFields(log.Fields{ + "appservice": applicationServiceID, + }).WithError(err).Fatalf("appservice unable to select new events to send") } }() events, maxID, txnID, err = retrieveEvents(eventRowsCurr, limit)