Permalink
Browse files

simplify fire service event, add more logging

  • Loading branch information...
1 parent 6afd841 commit a69b25b08b60f819b83b753a9fb8a037d65b6ef1 @adam-m adam-m committed Jun 13, 2012
Showing with 6 additions and 9 deletions.
  1. +6 −9 Ingest/src/org/sleuthkit/autopsy/ingest/IngestManager.java
@@ -960,15 +960,9 @@ protected Object doInBackground() throws Exception {
stats.start();
//notify main thread services started
- SwingUtilities.invokeLater(new Runnable() {
-
- @Override
- public void run() {
- for (IngestServiceAbstractFile s : AbstractFileServices) {
- IngestManager.fireServiceEvent(SERVICE_STARTED_EVT, s.getName());
- }
- }
- });
+ for (IngestServiceAbstractFile s : AbstractFileServices) {
+ IngestManager.fireServiceEvent(SERVICE_STARTED_EVT, s.getName());
+ }
final String displayName = "File Ingest";
progress = ProgressHandleFactory.createHandle(displayName, new Cancellable() {
@@ -1041,7 +1035,10 @@ public boolean cancel() {
@Override
protected void done() {
try {
+ Date d1 = new Date();
super.get(); //block and get all exceptions thrown while doInBackground()
+ Date d2 = new Date();
+ logger.log(Level.INFO, "File ingest get() took: " + (d2.getTime()-d1.getTime()) );
//notify services of completion
if (!this.isCancelled()) {
for (IngestServiceAbstractFile s : AbstractFileServices) {

0 comments on commit a69b25b

Please sign in to comment.