Added notification logging

pull/187/head
M66B 5 years ago
parent 06ff730375
commit 0154ecfa41

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

Loading…
Cancel
Save