mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 11:07:43 +00:00
Merge remote-tracking branch 'upstream/develop' into collaborative
This commit is contained in:
commit
ae1441ab1b
@ -1263,16 +1263,13 @@ class Logs(object):
|
||||
rep_path = rep_path.replace("\\\\", "\\")
|
||||
for file in os.listdir(logs_path):
|
||||
log = codecs.open(make_path(logs_path, file), "r", "utf_8")
|
||||
for line in log:
|
||||
line = line.replace(rep_path, "test_data")
|
||||
if line.startswith("Exception"):
|
||||
common_log.write(file +": " + line)
|
||||
elif line.startswith("Error"):
|
||||
common_log.write(file +": " + line)
|
||||
elif line.startswith("SEVERE"):
|
||||
common_log.write(file +":" + line)
|
||||
else:
|
||||
warning_log.write(file +": " + line)
|
||||
try:
|
||||
for line in log:
|
||||
line = line.replace(rep_path, "test_data")
|
||||
if line.startswith("SEVERE"):
|
||||
common_log.write(file +": " + line)
|
||||
except UnicodeDecodeError as e:
|
||||
pass
|
||||
log.close()
|
||||
common_log.write("\n")
|
||||
common_log.close()
|
||||
|
@ -91,7 +91,7 @@ class TskDbDiff(object):
|
||||
self._dump_diff = TskDbDiff._get_tmp_file("DBDump-Diff", ".txt")
|
||||
else:
|
||||
self._bb_dump = os.path.join(self.output_dir, "BlackboardDump.txt")
|
||||
self._bb_dump_diff = os.path.join(self.output_dir, "BlackboardDumpDiff.txt")
|
||||
self._bb_dump_diff = os.path.join(self.output_dir, "BlackboardDump-Diff.txt")
|
||||
self._dump = os.path.join(self.output_dir, "DBDump.txt")
|
||||
self._dump_diff = os.path.join(self.output_dir, "DBDump-Diff.txt")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user