Skip to content

Commit

Permalink
fix #93 as per indicated in previous comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-br committed Oct 9, 2024
1 parent 1473ca8 commit 55b2add
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sysdiagnose/parsers/logarchive.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ def __convert_using_native_logparser(input_folder: str, output_file: str) -> lis
print(f"WARNING: error parsing JSON {line}: {str(e)}")
except KeyError:
# last line of log does not contain 'time' field, nor the rest of the data.
# so just ignore it
pass
# so just ignore it and all the rest.
# last line looks like {'count':xyz, 'finished':1}
break

def __convert_using_unifiedlogparser(input_folder: str, output_file: str) -> list:
print('WARNING: using Mandiant UnifiedLogReader to parse logs, results will be less reliable than on OS X')
Expand Down

0 comments on commit 55b2add

Please sign in to comment.