diff --git a/vnpy/app/cta_strategy/template.py b/vnpy/app/cta_strategy/template.py index 7dda141b..a95a9185 100644 --- a/vnpy/app/cta_strategy/template.py +++ b/vnpy/app/cta_strategy/template.py @@ -206,8 +206,7 @@ class CtaTemplate(ABC): """ Write a log message. """ - if self.inited: - self.cta_engine.write_log(msg, self) + self.cta_engine.write_log(msg, self) def get_engine_type(self): """