Skip to content

Commit

Permalink
Merge pull request #2 from Watfaq/print-logs
Browse files Browse the repository at this point in the history
print logs
  • Loading branch information
ibigbug authored Dec 19, 2024
2 parents 1773d37 + d298af7 commit caa0596
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ func (c *Controller) nodeInfoMonitor() (err error) {
newUserInfo, err := c.apiClient.GetUserList()
if err != nil {
if err.Error() == api.UserNotModified {
c.logger.Println("User list not modified")
usersChanged = false
newUserInfo = c.userList
} else {
Expand Down Expand Up @@ -282,6 +283,7 @@ func (c *Controller) nodeInfoMonitor() (err error) {
} else {
var deleted, added []api.UserInfo
if usersChanged {
c.logger.Println("User list changed")
deleted, added = compareUserList(c.userList, newUserInfo)
if len(deleted) > 0 {
deletedEmail := make([]string, len(deleted))
Expand Down

0 comments on commit caa0596

Please sign in to comment.