mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-26 15:08:28 +00:00
Remove some redundant logging
This commit is contained in:
parent
72b65640a4
commit
fbc654d477
1 changed files with 0 additions and 9 deletions
|
@ -255,8 +255,6 @@ func attemptMakeJoinForRestrictedMembership(
|
|||
continue
|
||||
}
|
||||
|
||||
logrus.Info("Inspecting room ", allowed.RoomID)
|
||||
|
||||
// Now have a look and see if any of the joined users match the
|
||||
// user who has initiated this join.
|
||||
found := false
|
||||
|
@ -269,12 +267,9 @@ func attemptMakeJoinForRestrictedMembership(
|
|||
|
||||
// The user doesn't seem to exist in this room, try the next one.
|
||||
if !found {
|
||||
logger.Infof("User %q is not in room %q", userID, queryReq.RoomID)
|
||||
continue
|
||||
}
|
||||
|
||||
logrus.Info("Found user", userID, "in room")
|
||||
|
||||
// Now look through all of the join events of the other members. Our goal
|
||||
// is to try and find a user from our own server that has a suitable power
|
||||
// level to popuate into the `join_authorised_via_users_server` field.
|
||||
|
@ -290,8 +285,6 @@ func attemptMakeJoinForRestrictedMembership(
|
|||
continue
|
||||
}
|
||||
|
||||
logrus.Info("Found possibly authorising member", *member.StateKey)
|
||||
|
||||
// We have a user who is joined to the room, so we can authorise joins.
|
||||
// We will only be able to "grant" joins if any of our users have the
|
||||
// power to invite other users — this flag helps us to return the right
|
||||
|
@ -301,8 +294,6 @@ func attemptMakeJoinForRestrictedMembership(
|
|||
// If the user has the ability to invite to the room then they are a
|
||||
// suitable candidate for the `join_authorised_via_users_server`.
|
||||
if powerLevels.UserLevel(*member.StateKey) >= powerLevels.Invite {
|
||||
logrus.Info("Found member", *member.StateKey, "with sufficient invite power")
|
||||
|
||||
// We'll set the event content again, this time including the
|
||||
// `join_authorised_via_users_server` field for the chosen user.
|
||||
err := builder.SetContent(map[string]interface{}{
|
||||
|
|
Loading…
Reference in a new issue