mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-09 06:39:33 +00:00
simplify fire service event, add more logging
This commit is contained in:
parent
6afd841c9d
commit
a69b25b08b
@ -960,15 +960,9 @@ public class IngestManager {
|
||||
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());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
final String displayName = "File Ingest";
|
||||
progress = ProgressHandleFactory.createHandle(displayName, new Cancellable() {
|
||||
@ -1041,7 +1035,10 @@ public class IngestManager {
|
||||
@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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user