Skip to content

Commit

Permalink
Merge pull request #34 from ambrosus/add-logs
Browse files Browse the repository at this point in the history
feat: add logs for debug
  • Loading branch information
serezhaolshan authored Nov 23, 2023
2 parents af015e2 + 6c0cc4c commit d067001
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/watcher/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ func (s *service) GetWatcher(ctx context.Context, pushToken string) (*Watcher, e
return nil, errors.New("watcher not found")
}

fmt.Printf("!!GetWatcher -> watcher %v\n", watcher)

s.mx.Lock()
s.cachedWatcher[encodePushToken] = watcher
s.mx.Unlock()
Expand Down

0 comments on commit d067001

Please sign in to comment.