hood: Comment out quiet zone debug prints. Fixes #24

This commit is contained in:
Little Cat 2021-06-26 20:30:49 -03:00
parent 4d78125977
commit a90d259b20
No known key found for this signature in database
GPG key ID: 68CC2B4D0E5AF41C

View file

@ -140,7 +140,7 @@ class QuietZoneState(StateData.StateData):
if not config.GetBool('astron-support', True): if not config.GetBool('astron-support', True):
def handleWaitForQuietZoneResponse(self, msgType, di): def handleWaitForQuietZoneResponse(self, msgType, di):
self.notify.debug('handleWaitForQuietZoneResponse(' + 'msgType=' + str(msgType) + ', di=' + str(di) + ')') # self.notify.debug('handleWaitForQuietZoneResponse(' + 'msgType=' + str(msgType) + ', di=' + str(di) + ')')
if msgType == CLIENT_CREATE_OBJECT_REQUIRED: if msgType == CLIENT_CREATE_OBJECT_REQUIRED:
base.cr.handleQuietZoneGenerateWithRequired(di) base.cr.handleQuietZoneGenerateWithRequired(di)
elif msgType == CLIENT_CREATE_OBJECT_REQUIRED_OTHER: elif msgType == CLIENT_CREATE_OBJECT_REQUIRED_OTHER:
@ -153,7 +153,7 @@ class QuietZoneState(StateData.StateData):
base.cr.handlePlayGame(msgType, di) base.cr.handlePlayGame(msgType, di)
else: else:
def handleWaitForQuietZoneResponse(self, msgType, di): def handleWaitForQuietZoneResponse(self, msgType, di):
self.notify.debug('handleWaitForQuietZoneResponse(' + 'msgType=' + str(msgType) + ', di=' + str(di) + ')') # self.notify.debug('handleWaitForQuietZoneResponse(' + 'msgType=' + str(msgType) + ', di=' + str(di) + ')')
if msgType == CLIENT_ENTER_OBJECT_REQUIRED: if msgType == CLIENT_ENTER_OBJECT_REQUIRED:
base.cr.handleQuietZoneGenerateWithRequired(di) base.cr.handleQuietZoneGenerateWithRequired(di)
elif msgType == CLIENT_ENTER_OBJECT_REQUIRED_OTHER: elif msgType == CLIENT_ENTER_OBJECT_REQUIRED_OTHER:
@ -167,7 +167,7 @@ class QuietZoneState(StateData.StateData):
if not config.GetBool('astron-support', True): if not config.GetBool('astron-support', True):
def handleWaitForZoneRedirect(self, msgType, di): def handleWaitForZoneRedirect(self, msgType, di):
self.notify.debug('handleWaitForZoneRedirect(' + 'msgType=' + str(msgType) + ', di=' + str(di) + ')') # self.notify.debug('handleWaitForZoneRedirect(' + 'msgType=' + str(msgType) + ', di=' + str(di) + ')')
if msgType == CLIENT_CREATE_OBJECT_REQUIRED: if msgType == CLIENT_CREATE_OBJECT_REQUIRED:
base.cr.handleQuietZoneGenerateWithRequired(di) base.cr.handleQuietZoneGenerateWithRequired(di)
elif msgType == CLIENT_CREATE_OBJECT_REQUIRED_OTHER: elif msgType == CLIENT_CREATE_OBJECT_REQUIRED_OTHER:
@ -178,7 +178,7 @@ class QuietZoneState(StateData.StateData):
base.cr.handlePlayGame(msgType, di) base.cr.handlePlayGame(msgType, di)
else: else:
def handleWaitForZoneRedirect(self, msgType, di): def handleWaitForZoneRedirect(self, msgType, di):
self.notify.debug('handleWaitForZoneRedirect(' + 'msgType=' + str(msgType) + ', di=' + str(di) + ')') # self.notify.debug('handleWaitForZoneRedirect(' + 'msgType=' + str(msgType) + ', di=' + str(di) + ')')
if msgType == CLIENT_ENTER_OBJECT_REQUIRED: if msgType == CLIENT_ENTER_OBJECT_REQUIRED:
base.cr.handleQuietZoneGenerateWithRequired(di) base.cr.handleQuietZoneGenerateWithRequired(di)
elif msgType == CLIENT_ENTER_OBJECT_REQUIRED_OTHER: elif msgType == CLIENT_ENTER_OBJECT_REQUIRED_OTHER:
@ -199,7 +199,7 @@ class QuietZoneState(StateData.StateData):
self._setZoneCompleteLocalCallbacks = {} self._setZoneCompleteLocalCallbacks = {}
def enterWaitForQuietZoneResponse(self): def enterWaitForQuietZoneResponse(self):
self.notify.debug('enterWaitForQuietZoneResponse(doneStatus=' + str(self._requestStatus) + ')') # self.notify.debug('enterWaitForQuietZoneResponse(doneStatus=' + str(self._requestStatus) + ')')
if not self.Disable: if not self.Disable:
base.cr.handler = self.handleWaitForQuietZoneResponse base.cr.handler = self.handleWaitForQuietZoneResponse
base.cr.handlerArgs = self._requestStatus base.cr.handlerArgs = self._requestStatus
@ -231,7 +231,7 @@ class QuietZoneState(StateData.StateData):
return return
def enterWaitForZoneRedirect(self): def enterWaitForZoneRedirect(self):
self.notify.debug('enterWaitForZoneRedirect(requestStatus=' + str(self._requestStatus) + ')') # self.notify.debug('enterWaitForZoneRedirect(requestStatus=' + str(self._requestStatus) + ')')
if not self.Disable: if not self.Disable:
base.cr.handler = self.handleWaitForZoneRedirect base.cr.handler = self.handleWaitForZoneRedirect
base.cr.handlerArgs = self._requestStatus base.cr.handlerArgs = self._requestStatus
@ -276,7 +276,7 @@ class QuietZoneState(StateData.StateData):
return return
def enterWaitForSetZoneResponse(self): def enterWaitForSetZoneResponse(self):
self.notify.debug('enterWaitForSetZoneResponse(requestStatus=' + str(self._requestStatus) + ')') # self.notify.debug('enterWaitForSetZoneResponse(requestStatus=' + str(self._requestStatus) + ')')
if not self.Disable: if not self.Disable:
messenger.send(self.getEnterWaitForSetZoneResponseMsg(), [self._requestStatus]) messenger.send(self.getEnterWaitForSetZoneResponseMsg(), [self._requestStatus])
base.cr.handlerArgs = self._requestStatus base.cr.handlerArgs = self._requestStatus
@ -295,7 +295,7 @@ class QuietZoneState(StateData.StateData):
return return
def enterWaitForSetZoneComplete(self): def enterWaitForSetZoneComplete(self):
self.notify.debug('enterWaitForSetZoneComplete(requestStatus=' + str(self._requestStatus) + ')') # self.notify.debug('enterWaitForSetZoneComplete(requestStatus=' + str(self._requestStatus) + ')')
if not self.Disable: if not self.Disable:
base.cr.handlerArgs = self._requestStatus base.cr.handlerArgs = self._requestStatus
if base.slowQuietZone: if base.slowQuietZone: