Skip to content

Commit

Permalink
fixing type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
krady committed Jul 20, 2024
1 parent 416fdbc commit 02cceef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/alogamous/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@

with open("../../data/test_output_file.txt", "a") as output_file:
reader = directory_reader.DirectoryReader("../../data")
expected_fields = log_line_parser.LOG_FILE_CONFIGS[sys.argv[1]][log_line_parser.ConfigParameters.EXPECTED_FIELDS]
seperator = log_line_parser.LOG_FILE_CONFIGS[sys.argv[1]][log_line_parser.ConfigParameters.SEPERATOR]
header_line = log_line_parser.LOG_FILE_CONFIGS[sys.argv[1]][log_line_parser.ConfigParameters.HEADER_LINE]
expected_fields = list(
log_line_parser.LOG_FILE_CONFIGS[sys.argv[1]][log_line_parser.ConfigParameters.EXPECTED_FIELDS]
)
seperator = str(log_line_parser.LOG_FILE_CONFIGS[sys.argv[1]][log_line_parser.ConfigParameters.SEPERATOR])
header_line = str(log_line_parser.LOG_FILE_CONFIGS[sys.argv[1]][log_line_parser.ConfigParameters.HEADER_LINE])
line_parser = log_line_parser.LogLineParser(expected_fields, seperator, header_line)
analyzer.analyze_log_stream(
[
Expand Down

0 comments on commit 02cceef

Please sign in to comment.