Skip to content

Commit 9544954

Browse files
committed
chore: add context to logs
1 parent 06ebba8 commit 9544954

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/to/bitkit/fcm/FcmService.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ class FcmService : FirebaseMessagingService() {
5050
Logger.debug("New FCM at: ${Date(message.sentTime)}", context = TAG)
5151

5252
message.notification?.run {
53-
Logger.debug("FCM title: $title")
54-
Logger.debug("FCM body: $body")
53+
Logger.debug("FCM title: $title", context = TAG)
54+
Logger.debug("FCM body: $body", context = TAG)
5555
sendNotification(title, body, Bundle(message.data.toPersistableBundle()))
5656
}
5757

5858
if (message.data.isNotEmpty()) {
59-
Logger.debug("FCM data: ${message.data}")
59+
Logger.debug("FCM data: ${message.data}", context = TAG)
6060

6161
val shouldSchedule = runCatching {
6262
val isEncryptedNotification = message.data.tryAs<EncryptedNotification> {

0 commit comments

Comments
 (0)