Skip to content

Commit

Permalink
Handle \`\ character in logs (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
judahpaul16 authored Dec 4, 2024
1 parent ef9e213 commit 4ad9d18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend.py
Original file line number Diff line number Diff line change
@@ -78,6 +78,7 @@ def last_logs(request: Request, last_line_number: Optional[int] = 0):
total_lines = 0
with log_file_path.open("r") as f:
for line in f:
line = line.replace("`", "")
if is_start_of_new_log(line):
if current_entry: # If there's an accumulated entry, add it to new_logs
new_logs.append(''.join(current_entry))

0 comments on commit 4ad9d18

Please sign in to comment.