X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/b2a2d3543cb0d2f0264c2d89f4a11ccd68d88333..867df3938aa231509618fafcbb7989329f352304:/modlib.py diff --git a/modlib.py b/modlib.py index eeb7c4e..91e0584 100644 --- a/modlib.py +++ b/modlib.py @@ -258,8 +258,7 @@ class _ListenSocket(object): def _make_closer(self, obj, client): def close(): - print(repr(self), repr(obj)) - self.lib.parent.log(repr(self), '?', 'Closing child socket %d' % (client.fileno())) + self.lib.parent.log(repr(self), '?', 'Closing child socket #%d' % (client.fileno())) try: obj.closing() except AttributeError: @@ -274,7 +273,7 @@ class _ListenSocket(object): client, addr = self.sock.accept() obj = self.cls(client) obj.close = self._make_closer(obj, client) - self.lib.parent.log(repr(self), '?', 'New connection %d from %s' % (client.fileno(), addr)) + self.lib.parent.log(repr(self), '?', 'New connection #%d from %s' % (client.fileno(), addr)) self.clients.append((client,obj)) self.lib.parent.newfd(obj, client.fileno()) return []