Skip to content

Commit

Permalink
[MI-3123] Add logs for count of MS Teams and MM users (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayusht2810 authored May 25, 2023
1 parent 6dcce23 commit 4174d93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,15 @@ func (p *Plugin) syncUsers() {
p.API.LogError("Unable to list MS Teams users during sync user job", "error", err.Error())
return
}

p.API.LogDebug("Count of MS Teams users", "count", len(msUsers))
mmUsers, appErr := p.API.GetUsers(&model.UserGetOptions{Active: true, Page: 0, PerPage: math.MaxInt32})
if appErr != nil {
p.API.LogError("Unable to get MM users during sync user job", "error", appErr.Error())
return
}

p.API.LogDebug("Count of MM users", "count", len(mmUsers))
mmUsersMap := make(map[string]*model.User, len(mmUsers))
for _, u := range mmUsers {
mmUsersMap[u.Email] = u
Expand Down

0 comments on commit 4174d93

Please sign in to comment.