mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-27 00:31:55 -06:00
Logging
This commit is contained in:
parent
bb5ee2ecc4
commit
69111355d0
|
@ -273,6 +273,8 @@ func (r *Inputer) checkForMissingAuthEvents(
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(unknown) > 0 {
|
if len(unknown) > 0 {
|
||||||
|
logrus.Printf("XXX: There are %d missing auth events", len(unknown))
|
||||||
|
|
||||||
serverReq := &fedapi.QueryJoinedHostServerNamesInRoomRequest{
|
serverReq := &fedapi.QueryJoinedHostServerNamesInRoomRequest{
|
||||||
RoomID: event.RoomID(),
|
RoomID: event.RoomID(),
|
||||||
}
|
}
|
||||||
|
@ -281,6 +283,8 @@ func (r *Inputer) checkForMissingAuthEvents(
|
||||||
return fmt.Errorf("r.FSAPI.QueryJoinedHostServerNamesInRoom: %w", err)
|
return fmt.Errorf("r.FSAPI.QueryJoinedHostServerNamesInRoom: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logrus.Printf("XXX: Asking servers %+v", serverRes.ServerNames)
|
||||||
|
|
||||||
var res gomatrixserverlib.RespEventAuth
|
var res gomatrixserverlib.RespEventAuth
|
||||||
var found bool
|
var found bool
|
||||||
for _, serverName := range serverRes.ServerNames {
|
for _, serverName := range serverRes.ServerNames {
|
||||||
|
@ -289,9 +293,12 @@ func (r *Inputer) checkForMissingAuthEvents(
|
||||||
logrus.WithError(err).Warnf("Failed to get event auth from federation for %q: %s", event.EventID(), err)
|
logrus.WithError(err).Warnf("Failed to get event auth from federation for %q: %s", event.EventID(), err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
logrus.Printf("XXX: Server %q provided us with %d auth events", serverName, len(res.AuthEvents))
|
||||||
found = true
|
found = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
if !found {
|
if !found {
|
||||||
|
logrus.Printf("XXX: None of the %d servers provided us with auth events", len(serverRes.ServerNames))
|
||||||
return fmt.Errorf("no servers provided event auth")
|
return fmt.Errorf("no servers provided event auth")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue