Revision ac1d2808
Added by Katja Luther over 2 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/update/UpdateHandler.java | ||
---|---|---|
105 | 105 |
// check for updates, this causes I/O |
106 | 106 |
final IStatus status = operation.resolveModal(monitor); |
107 | 107 |
// failed to find updates (inform user and exit) |
108 |
long actualTime = System.currentTimeMillis(); |
|
108 | 109 |
if (status.getCode() == UpdateOperation.STATUS_NOTHING_TO_UPDATE) { |
109 | 110 |
showMessage(shell, sync); |
110 |
long actualTime = System.currentTimeMillis(); |
|
111 | 111 |
logger.info("update resolved, but no updates available " + (actualTime - startTime) + "Status: " + status.toString()); |
112 | 112 |
return Status.CANCEL_STATUS; |
113 | 113 |
} |
114 |
logger.info("update resolved " + System.currentTimeMillis() + "Status: " + status.toString()); |
|
114 |
|
|
115 |
logger.info("update resolved " + (actualTime - startTime) + "Status: " + status.toString()); |
|
115 | 116 |
}catch(Exception e){ |
116 | 117 |
logger.warn( e.getStackTrace().toString()); |
117 | 118 |
return Status.CANCEL_STATUS; |
Also available in: Unified diff
minor