Logger fixes for openhands-resolver (#4710)

Co-authored-by: Graham Neubig <neubig@gmail.com>
This commit is contained in:
Rohit Malhotra
2024-11-05 11:49:32 -05:00
committed by GitHub
parent df9e9fca5a
commit 436ecb80a3
8 changed files with 56 additions and 30 deletions

View File

@@ -1,4 +1,5 @@
from typing import Any
from uuid import uuid4
from fastapi import Request
@@ -19,7 +20,7 @@ class SecurityAnalyzer:
"""
self.event_stream = event_stream
self.event_stream.subscribe(
EventStreamSubscriber.SECURITY_ANALYZER, self.on_event
EventStreamSubscriber.SECURITY_ANALYZER, self.on_event, str(uuid4())
)
async def on_event(self, event: Event) -> None: