remove debug, doesn't make sense anymore

This commit is contained in:
meejah 2021-04-10 18:33:47 -06:00
parent b73c76c8df
commit e689bfcf4f

View File

@ -114,14 +114,6 @@ class TransitConnection(LineReceiver):
# receiver can handle it. # receiver can handle it.
self._state.got_bytes(data) self._state.got_bytes(data)
def disconnect_error(self):
# we haven't finished the handshake, so there are no tokens tracking
# us
self.transport.loseConnection()
# XXX probably should be logged by state?
if self.factory.transit._debug_log:
log.msg("transitFailed %r" % self)
def disconnect_redundant(self): def disconnect_redundant(self):
# this is called if a buddy connected and we were found unnecessary. # this is called if a buddy connected and we were found unnecessary.
# Any token-tracking cleanup will have been done before we're called. # Any token-tracking cleanup will have been done before we're called.
@ -175,7 +167,6 @@ class Transit(object):
self.active_connections = ActiveConnections() self.active_connections = ActiveConnections()
self.pending_requests = PendingRequests(self.active_connections) self.pending_requests = PendingRequests(self.active_connections)
self.usage = usage self.usage = usage
self._debug_log = False
self._timestamp = get_timestamp self._timestamp = get_timestamp
self._rebooted = self._timestamp() self._rebooted = self._timestamp()