# HG changeset patch # User Drew Perttula # Date 2016-06-05 03:04:03 # Node ID 9ea0dbe3c8b48a2b9b8e9d19e02fba815ebc6dc5 # Parent 5c54a1f940508bf0f6550a55c45001df8a21d19c rdfdb logging Ignore-this: 7a0080cd4b0d434c049e401d63a7a3b4 diff --git a/bin/rdfdb b/bin/rdfdb --- a/bin/rdfdb +++ b/bin/rdfdb @@ -404,15 +404,15 @@ class WebsocketClient(cyclone.websocket. def connectionMade(self, *args, **kwargs): global _wsClientSerial - self.connectionId = 'connection-%s' % _wsClientSerial - log.info("new ws client %r", self.connectionId) + connectionId = 'connection-%s' % _wsClientSerial _wsClientSerial += 1 - self.wsClient = WsClient(self.connectionId, self.sendMessage) + self.wsClient = WsClient(connectionId, self.sendMessage) + log.info("new ws client %r", self.wsClient) self.settings.db.addClient(self.wsClient) def connectionLost(self, reason): - log.info("bye ws client %r", self.connectionId) + log.info("bye ws client %r", self.wsClient) self.settings.db.clientErrored( Failure(WebsocketDisconnect(reason)), self.wsClient)