This commit is contained in:
vn.py 2017-10-31 21:33:01 +08:00
parent fbc29c6b5a
commit 7ca9b8da1f

View File

@ -340,6 +340,7 @@ class MainEngine(object):
#---------------------------------------------------------------------- #----------------------------------------------------------------------
def registerLogEvent(self, eventType): def registerLogEvent(self, eventType):
"""注册日志事件监听""" """注册日志事件监听"""
if self.logEngine:
self.eventEngine.register(eventType, self.logEngine.processLogEvent) self.eventEngine.register(eventType, self.logEngine.processLogEvent)
#---------------------------------------------------------------------- #----------------------------------------------------------------------