Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Settings(BaseSettings):
# server
ENVIRONMENT: Literal["local", "staging", "production"] = "local"
API_V1_STR: str = "/api/v1"
LOG_STREAM_SEARCH_STRING: str = "Epoch" # Log viewer search string
# cluster
NAMESPACE: str
# CORS
Expand Down
9 changes: 8 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,14 @@ async def stream_job(
logger.debug(f"Connecting WebSocket for job {job_id}")
await websocket.accept()

stream_manager = LogStreamManager(websocket, job_id, full_log, follow, last_lines)
stream_manager = LogStreamManager(
websocket,
job_id,
full_log,
follow,
last_lines,
search_string=settings.LOG_STREAM_SEARCH_STRING,
)
try:
await stream_manager.run()
except WebSocketDisconnect:
Expand Down