Merge pull request #5928 from k9mail/more_notification_logging
Add more logging around notifications
This commit is contained in:
commit
3046312be6
3 changed files with 12 additions and 0 deletions
|
@ -193,6 +193,8 @@ class NotificationChannelManager(
|
|||
}
|
||||
|
||||
Timber.v("Recreating NotificationChannel(%s => %s)", oldChannelId, newChannelId)
|
||||
Timber.v("Old NotificationChannel: %s", oldNotificationChannel)
|
||||
Timber.v("New NotificationChannel: %s", newNotificationChannel)
|
||||
notificationManager.createNotificationChannel(newNotificationChannel)
|
||||
}
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ import androidx.core.app.NotificationCompat
|
|||
import androidx.core.app.NotificationCompat.WearableExtender
|
||||
import androidx.core.app.NotificationManagerCompat
|
||||
import com.fsck.k9.notification.NotificationChannelManager.ChannelType
|
||||
import timber.log.Timber
|
||||
import androidx.core.app.NotificationCompat.Builder as NotificationBuilder
|
||||
|
||||
internal class SingleMessageNotificationCreator(
|
||||
|
@ -44,6 +45,13 @@ internal class SingleMessageNotificationCreator(
|
|||
.setLockScreenNotification(baseNotificationData, singleNotificationData.addLockScreenNotification)
|
||||
.build()
|
||||
|
||||
if (isGroupSummary) {
|
||||
Timber.v(
|
||||
"Creating single summary notification (silent=%b): %s",
|
||||
singleNotificationData.isSilent,
|
||||
notification
|
||||
)
|
||||
}
|
||||
notificationManager.notify(notificationId, notification)
|
||||
}
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ import androidx.core.app.NotificationManagerCompat
|
|||
import com.fsck.k9.Account
|
||||
import com.fsck.k9.notification.NotificationChannelManager.ChannelType
|
||||
import com.fsck.k9.notification.NotificationIds.getNewMailSummaryNotificationId
|
||||
import timber.log.Timber
|
||||
import androidx.core.app.NotificationCompat.Builder as NotificationBuilder
|
||||
|
||||
internal class SummaryNotificationCreator(
|
||||
|
@ -73,6 +74,7 @@ internal class SummaryNotificationCreator(
|
|||
.setLockScreenNotification(baseNotificationData)
|
||||
.build()
|
||||
|
||||
Timber.v("Creating inbox-style summary notification (silent=%b): %s", notificationData.isSilent, notification)
|
||||
notificationManager.notify(notificationData.notificationId, notification)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue