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.
|
// This makes it possible to use batching resulting in less requests.
|
||||||
if (!refreshable.callRunning && refreshable.timeout < System.currentTimeMillis() + 5000) {
|
if (!refreshable.callRunning && refreshable.timeout < System.currentTimeMillis() + 5000) {
|
||||||
refreshable.callRunning = true;
|
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
|
@Override
|
||||||
public void onFailure(Throwable caught) {
|
public void onFailure(Throwable caught) {
|
||||||
refreshable.callRunning = false;
|
refreshable.callRunning = false;
|
||||||
@@ -74,7 +75,7 @@ public class RefreshManager {
|
|||||||
try {
|
try {
|
||||||
refreshable.widget.setData(result.getDto(), refreshable.timeout, updateNo);
|
refreshable.widget.setData(result.getDto(), refreshable.timeout, updateNo);
|
||||||
} catch(Throwable error) {
|
} 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();
|
reschedule();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user