[Bugfix] Fix removal of old logs when stats are enabled (#84)
Signed-off-by: syedmba <syedmba7@connect.hku.hk>
This commit is contained in:
1 parent
befc7fdfd7
commit
f4633fe381
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user