mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Updated tester to work with Options panels and logging.
This commit is contained in:
parent
4ed8fa7250
commit
bc056f4054
@ -22,7 +22,6 @@ package org.sleuthkit.autopsy.hashdatabase;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.io.File;
|
||||
import java.util.logging.Level;
|
||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JOptionPane;
|
||||
@ -31,6 +30,7 @@ import javax.swing.event.ListSelectionEvent;
|
||||
import javax.swing.event.ListSelectionListener;
|
||||
import javax.swing.table.AbstractTableModel;
|
||||
import org.sleuthkit.autopsy.corecomponents.OptionsPanel;
|
||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||
import org.sleuthkit.datamodel.TskException;
|
||||
|
||||
final class HashDbManagementPanel extends javax.swing.JPanel implements OptionsPanel {
|
||||
@ -46,6 +46,7 @@ final class HashDbManagementPanel extends javax.swing.JPanel implements OptionsP
|
||||
}
|
||||
|
||||
private void customizeComponents() {
|
||||
setName("Hash Database Configuration");
|
||||
this.ingestWarningLabel.setVisible(false);
|
||||
this.hashSetTable.setModel(hashSetTableModel);
|
||||
this.hashSetTable.setTableHeader(null);
|
||||
|
@ -700,7 +700,7 @@ def fill_case_data():
|
||||
|
||||
# Set the case starting time based off the first line of autopsy.log.0
|
||||
# *** If logging time format ever changes this will break ***
|
||||
case.start_date = log.readline().split(" java.")[0]
|
||||
case.start_date = log.readline().split(" org.")[0]
|
||||
|
||||
# Set the case ending time based off the "create" time (when the file was copied)
|
||||
case.end_date = time.ctime(os.path.getmtime(log_path))
|
||||
@ -724,7 +724,7 @@ def fill_case_data():
|
||||
|
||||
case.heap_space = search_logs("Heap memory usage:")[0].rstrip().split(": ")[1]
|
||||
|
||||
ingest_line = search_logs("INFO: Ingest (including enqueue)")[0]
|
||||
ingest_line = search_logs("Ingest (including enqueue)")[0]
|
||||
case.total_ingest_time = get_word_at(ingest_line, 5).rstrip()
|
||||
|
||||
message_line = search_log_set("autopsy", "Ingest messages count:")[0]
|
||||
@ -862,7 +862,7 @@ def get_exceptions():
|
||||
logs_path = make_local_path(case.output_dir, case.image_name, "logs")
|
||||
results = []
|
||||
for file in os.listdir(logs_path):
|
||||
if "autopsy" in file:
|
||||
if "autopsy.log" in file:
|
||||
log = codecs.open(make_path(logs_path, file), "r", "latin-1")
|
||||
ex = re.compile("\SException")
|
||||
er = re.compile("\SError")
|
||||
|
Loading…
x
Reference in New Issue
Block a user