移除无用函数

This commit is contained in:
vn.py 2017-09-01 14:34:03 +08:00
parent a38fe96598
commit 38d10b3b2b

View File

@ -10,22 +10,6 @@ from vnpy.trader.vtEngine import MainEngine, LogEngine
from vnpy.trader.gateway import ctpGateway
from vnpy.trader.app import dataRecorder
#----------------------------------------------------------------------
def le.info(content):
"""输出日志"""
t = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
print '%s\t%s' %(t, content)
#----------------------------------------------------------------------
def processLogEvent(event):
"""处理日志事件"""
log = event.dict_['data']
if log.gatewayName:
content = '%s:%s' %(log.gatewayName, log.logContent)
else:
content = '%s:%s' %('MainEngine', log.logContent)
le.info(content)
#----------------------------------------------------------------------
def runChildProcess():
"""子进程运行函数"""