mirror of
https://github.com/christianselig/apollo-backend
synced 2024-12-22 14:25:28 +00:00
fix notification rates
This commit is contained in:
parent
2b9da40594
commit
eddf7b53d1
1 changed files with 2 additions and 2 deletions
|
@ -378,7 +378,7 @@ func (c *Consumer) Consume(delivery rmq.Delivery) {
|
|||
|
||||
res, err := client.Push(notification)
|
||||
if err != nil {
|
||||
c.statsd.Incr("apns.notification.errors", []string{}, 0.1)
|
||||
c.statsd.Incr("apns.notification.errors", []string{}, 1)
|
||||
c.logger.WithFields(logrus.Fields{
|
||||
"accountID": id,
|
||||
"err": err,
|
||||
|
@ -386,7 +386,7 @@ func (c *Consumer) Consume(delivery rmq.Delivery) {
|
|||
"reason": res.Reason,
|
||||
}).Error("failed to send notification")
|
||||
} else {
|
||||
c.statsd.Incr("apns.notification.sent", []string{}, 0.1)
|
||||
c.statsd.Incr("apns.notification.sent", []string{}, 1)
|
||||
c.logger.WithFields(logrus.Fields{
|
||||
"accountID": delivery.Payload(),
|
||||
"token": device.APNSToken,
|
||||
|
|
Loading…
Reference in a new issue