Commit 06c70397 authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Log status follow missing users at debug instead of warning level.

parent a0a80033
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr

### Changed
- Match handlers are now required to implement a signal handler function.
- Log status follow missing users at debug instead of warning level.

## [3.7.0] - 2021-09-28
### Added
+2 −2
Original line number Diff line number Diff line
@@ -190,11 +190,11 @@ func (p *Pipeline) statusFollow(logger *zap.Logger, session Session, envelope *r
			}
		}
		if len(missingUserIDs) != 0 || len(missingUsernames) != 0 {
			logger.Warn("Could not follow users, no user found", zap.Strings("user_ids", missingUserIDs), zap.Strings("usernames", missingUsernames))
			logger.Debug("Could not follow users, no user found", zap.Strings("user_ids", missingUserIDs), zap.Strings("usernames", missingUsernames))
		}
	}

	// Follow all of the validated user IDs, and prepare a list of current presences to return.
	// Follow all validated user IDs, and prepare a list of current presences to return.
	p.statusRegistry.Follow(session.ID(), followUserIDs)

	presences := make([]*rtapi.UserPresence, 0, len(followUserIDs))