[BugFix] Fix --disable-log-stats in V1 server mode (#17600)

Signed-off-by: Nick Hill <nhill@redhat.com>
This commit is contained in:
Nick Hill
2025-05-07 21:08:15 -07:00
committed by GitHub
parent 66ab3b13c9
commit 3d13ca0e24
2 changed files with 7 additions and 5 deletions

View File

@@ -120,8 +120,9 @@ class AsyncLLM(EngineClient):
executor_class=executor_class,
log_stats=self.log_stats,
)
for stat_logger in self.stat_loggers[0]:
stat_logger.log_engine_initialized()
if self.stat_loggers:
for stat_logger in self.stat_loggers[0]:
stat_logger.log_engine_initialized()
self.output_handler: Optional[asyncio.Task] = None
try:
# Start output handler eagerly if we are in the asyncio eventloop.