Added notification logging

This commit is contained in:
M66B 2020-10-23 16:11:22 +02:00
parent 06ff730375
commit 0154ecfa41
1 changed files with 5 additions and 2 deletions

View File

@ -3519,8 +3519,11 @@ class Core {
String tag = "unseen." + group + "." + Math.abs(id);
Notification notification = builder.build();
Log.i("Notifying tag=" + tag + " id=" + id + " group=" + notification.getGroup() +
(Build.VERSION.SDK_INT < Build.VERSION_CODES.O ? "" : " channel=" + notification.getChannelId()));
EntityLog.log(context, "Notifying tag=" + tag +
" id=" + id + " group=" + notification.getGroup() +
(Build.VERSION.SDK_INT < Build.VERSION_CODES.O
? " sdk=" + Build.VERSION.SDK_INT
: " channel=" + notification.getChannelId()));
try {
nm.notify(tag, 1, notification);
} catch (Throwable ex) {