[Bugfix] Fix removal of old logs when stats are enabled (#84)

Signed-off-by: syedmba <syedmba7@connect.hku.hk>
This commit is contained in:
Syed Muhammad Bin Asif authored and GitHub committed 2025-11-28 15:58:16 +08:00
1 parent befc7fdfd7
commit f4633fe381
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -110,7 +110,7 @@ class AsyncOmniLLM(EngineClient):
# Optional file handler for orchestrator
self._log_file = log_file
if self._log_file:
remove_old_logs(self._log_file, len(self.stage_list))
remove_old_logs(self._log_file, len(self.stage_configs))
configure_orchestrator_logger(logger, self._log_file)
self._stats_file, self._overall_stats_file = init_stats_paths(self._enable_stats, self._log_file)
+1 -1
View File
@@ -97,7 +97,7 @@ class OmniLLM:
# Optional file handler for orchestrator
self._log_file = log_file
if self._log_file:
remove_old_logs(self._log_file, len(self.stage_list))
remove_old_logs(self._log_file, len(self.stage_configs))
configure_orchestrator_logger(logger, self._log_file)
self._stats_file, self._overall_stats_file = init_stats_paths(self._enable_stats, self._log_file)