Update app.py
Browse files
app.py
CHANGED
@@ -501,7 +501,7 @@ def stream_logs():
|
|
501 |
while True:
|
502 |
try:
|
503 |
# Get log message from queue, timeout after 1 second
|
504 |
-
log_message = log_queue.get(
|
505 |
yield f"data: {log_message}\n\n"
|
506 |
except queue.Empty:
|
507 |
# Send a heartbeat to keep the connection alive
|
|
|
501 |
while True:
|
502 |
try:
|
503 |
# Get log message from queue, timeout after 1 second
|
504 |
+
log_message = log_queue.get()
|
505 |
yield f"data: {log_message}\n\n"
|
506 |
except queue.Empty:
|
507 |
# Send a heartbeat to keep the connection alive
|