- NotificationInterestListener _instance = listener.getInstance();
- _instance.onNotificationSubscribtion(notification);
- } catch (final Throwable _t) {
- if (_t instanceof Exception) {
- final Exception e = (Exception)_t;
- String _message = e.getMessage();
- this.logger.error("", _message);
- } else {
- throw Exceptions.sneakyThrow(_t);
- }
+ listener.getInstance().onNotificationSubscribtion(notification);
+ } catch (Exception e) {
+ LOG.warn("Listener {} reported unexpected error on notification {}",
+ listener.getInstance(), notification, e);