From 260e270c22833ca1fd192480655ab2c85486c243 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 6 Jun 2019 23:15:38 +0800 Subject: [PATCH] [Mod] allow writing log when strategy not inited --- vnpy/app/cta_strategy/template.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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): """