aboutsummaryrefslogtreecommitdiff
path: root/federationapi
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-08-07 15:00:23 +0100
committerGitHub <noreply@github.com>2020-08-07 15:00:23 +0100
commit5dd5a411195c0565b4a3340dc53e2893b92f2800 (patch)
tree80096af4053af115bbe6230a302dc1ce5cf1060b /federationapi
parent6ce7af8a3e6b1750f729727e583e5c1702221e56 (diff)
Tweak log levels of some federation logging (#1248)
* Tweak log levels of some federation logging * Update go.mod/go.sum for matrix-org/util#22 and matrix-org/gomatrixserverlib#215
Diffstat (limited to 'federationapi')
-rw-r--r--federationapi/routing/send.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go
index 903a2f22..f85da148 100644
--- a/federationapi/routing/send.go
+++ b/federationapi/routing/send.go
@@ -218,7 +218,9 @@ func (t *txnReq) processTransaction() (*gomatrixserverlib.RespSend, *util.JSONRe
}
t.processEDUs(t.EDUs)
- util.GetLogger(t.context).Infof("Processed %d PDUs from transaction %q", len(results), t.TransactionID)
+ if c := len(results); c > 0 {
+ util.GetLogger(t.context).Infof("Processed %d PDUs from transaction %q", c, t.TransactionID)
+ }
return &gomatrixserverlib.RespSend{PDUs: results}, nil
}
@@ -315,7 +317,7 @@ func (t *txnReq) processEDUs(edus []gomatrixserverlib.EDU) {
case gomatrixserverlib.MDeviceListUpdate:
t.processDeviceListUpdate(e)
default:
- util.GetLogger(t.context).WithField("type", e.Type).Warn("unhandled edu")
+ util.GetLogger(t.context).WithField("type", e.Type).Debug("Unhandled EDU")
}
}
}