@@ -62,7 +62,7 @@ public void run() {
62
62
(ApiType ) notification .getOldObj (), (ApiType ) notification .getNewObj ());
63
63
} catch (Throwable t ) {
64
64
// Catch all exceptions here so that listeners won't quit unexpectedly
65
- log .error ("failed invoking UPDATE event handler: {}" , t . getMessage () );
65
+ log .error ("failed invoking UPDATE event handler: {}" , t );
66
66
continue ;
67
67
}
68
68
} else if (obj instanceof AddNotification ) {
@@ -71,7 +71,7 @@ public void run() {
71
71
this .handler .onAdd ((ApiType ) notification .getNewObj ());
72
72
} catch (Throwable t ) {
73
73
// Catch all exceptions here so that listeners won't quit unexpectedly
74
- log .error ("failed invoking ADD event handler: {}" , t . getMessage () );
74
+ log .error ("failed invoking ADD event handler: {}" , t );
75
75
continue ;
76
76
}
77
77
} else if (obj instanceof DeleteNotification ) {
@@ -85,14 +85,14 @@ public void run() {
85
85
}
86
86
} catch (Throwable t ) {
87
87
// Catch all exceptions here so that listeners won't quit unexpectedly
88
- log .error ("failed invoking DELETE event handler: {}" , t . getMessage () );
88
+ log .error ("failed invoking DELETE event handler: {}" , t );
89
89
continue ;
90
90
}
91
91
} else {
92
92
throw new BadNotificationException ("unrecognized notification" );
93
93
}
94
94
} catch (InterruptedException e ) {
95
- log .error ("processor interrupted: {}" , e . getMessage () );
95
+ log .error ("processor interrupted: {}" , e );
96
96
return ;
97
97
}
98
98
}
0 commit comments