From 336e7eb7be21f5a60d95d652419719aac0310f46 Mon Sep 17 00:00:00 2001 From: Zheng Cai Date: Wed, 21 Jan 2026 19:24:48 +0800 Subject: [PATCH] fix logging --- openevolve/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openevolve/database.py b/openevolve/database.py index d39792c0c..691c4f1a2 100644 --- a/openevolve/database.py +++ b/openevolve/database.py @@ -1067,8 +1067,8 @@ def _is_novel(self, program_id: int, island_idx: int) -> bool: other = self.programs[pid] if other.embedding is None: - logger.log( - "Warning: Program %s has no embedding, skipping similarity check", other.id + logger.warning( + f"Program {other.id} has no embedding, skipping similarity check" ) continue