mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-28 14:57:12 +00:00
Included action name in error message
This commit is contained in:
1 parent
36729306dc
commit
8b117278f0
1 file changed
+3
-2
+3
-2
@@ -59,7 +59,8 @@ public class RefreshManager {
|
||||
// This makes it possible to use batching resulting in less requests.
|
||||
if (!refreshable.callRunning && refreshable.timeout < System.currentTimeMillis() + 5000) {
|
||||
refreshable.callRunning = true;
|
||||
actionExecutor.execute(refreshable.provider.getAction(), new AsyncCallback<ResultWithTTL<DTO>>() {
|
||||
final Action<ResultWithTTL<DTO>> action = refreshable.provider.getAction();
|
||||
actionExecutor.execute(action, new AsyncCallback<ResultWithTTL<DTO>>() {
|
||||
@Override
|
||||
public void onFailure(Throwable caught) {
|
||||
refreshable.callRunning = false;
|
||||
@@ -74,7 +75,7 @@ public class RefreshManager {
|
||||
try {
|
||||
refreshable.widget.setData(result.getDto(), refreshable.timeout, updateNo);
|
||||
} catch(Throwable error) {
|
||||
LOG.log(Level.SEVERE, "Error while refreshing content.", error);
|
||||
LOG.log(Level.SEVERE, "Error while refreshing content with action " + action.getClass().getName(), error);
|
||||
}
|
||||
reschedule();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user