diff --git a/vn.trader/ctpGateway/ctpGateway.py b/vn.trader/ctpGateway/ctpGateway.py index dcd444ff..ecf01468 100644 --- a/vn.trader/ctpGateway/ctpGateway.py +++ b/vn.trader/ctpGateway/ctpGateway.py @@ -17,6 +17,8 @@ from vnctptd import TdApi from ctpDataType import * from vtGateway import * +import logging + # 以下为一些VT类型和CTP类型的映射字典 # 价格类型映射 @@ -538,6 +540,9 @@ class CtpTdApi(TdApi): #---------------------------------------------------------------------- def onRspOrderInsert(self, data, error, n, last): """发单错误(柜台)""" + + logging.info(u'onRspOrderInsert') + err = VtErrorData() err.gatewayName = self.gatewayName err.errorID = error['ErrorID'] diff --git a/vn.trader/vtMain.py b/vn.trader/vtMain.py index bf24eb1b..b1b6634c 100644 --- a/vn.trader/vtMain.py +++ b/vn.trader/vtMain.py @@ -11,7 +11,7 @@ from uiMainWindow import * from setup_logger import setup_logger -setup_logger(filename='logs/vnpy_{0}.log'.format(datetime.now().strftime('%m%d_%H%M')), debug=True) +setup_logger(filename='logs/vnpy_{0}.log'.format(datetime.now().strftime('%m%d_%H%M')), debug=False) # ---------------------------------------------------------------------- def main():