From bf05cc5f574e1e442124dc1eae0e2d5162fdc016 Mon Sep 17 00:00:00 2001 From: Adil Hafeez Date: Thu, 14 Nov 2024 14:57:15 -0800 Subject: [PATCH] remove sleep --- arch/stream_traces.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/stream_traces.py b/arch/stream_traces.py index f3b166fd..1a165a8a 100644 --- a/arch/stream_traces.py +++ b/arch/stream_traces.py @@ -31,9 +31,7 @@ def process_log_line(line): for line in sys.stdin: - if not line: - time.sleep(1) - continue - tokens = line.split("gateway: upstream_llm trace details: ") - if len(tokens) > 1: - process_log_line(tokens[1]) + if line: + tokens = line.split("gateway: upstream_llm trace details: ") + if len(tokens) > 1: + process_log_line(tokens[1])