[MM-55595] Use annotated logger in search layer (#25468)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5a4dba8809
Коммит
b2ec1ff8ae
@@ -377,11 +377,11 @@ func (hub *PushNotificationsHub) start(c request.CTX) {
|
||||
case notificationTypeUpdateBadge:
|
||||
err = hub.app.updateMobileAppBadgeSync(c, notification.userID)
|
||||
default:
|
||||
mlog.Debug("Invalid notification type", mlog.String("notification_type", notification.notificationType))
|
||||
c.Logger().Debug("Invalid notification type", mlog.String("notification_type", notification.notificationType))
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
mlog.Error("Unable to send push notification", mlog.String("notification_type", notification.notificationType), mlog.Err(err))
|
||||
c.Logger().Error("Unable to send push notification", mlog.String("notification_type", notification.notificationType), mlog.Err(err))
|
||||
}
|
||||
}(notification)
|
||||
case <-hub.stopChan:
|
||||
@@ -717,7 +717,7 @@ func (a *App) buildFullPushNotificationMessage(c request.CTX, contentsConfig str
|
||||
postMessage := post.Message
|
||||
stripped, err := utils.StripMarkdown(postMessage)
|
||||
if err != nil {
|
||||
mlog.Warn("Failed parse to markdown", mlog.String("post_id", post.Id), mlog.Err(err))
|
||||
c.Logger().Warn("Failed parse to markdown", mlog.String("post_id", post.Id), mlog.Err(err))
|
||||
} else {
|
||||
postMessage = stripped
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user