changeset 1348:9ea0dbe3c8b4

rdfdb logging Ignore-this: 7a0080cd4b0d434c049e401d63a7a3b4
author Drew Perttula <drewp@bigasterisk.com>
date Sun, 05 Jun 2016 03:04:03 +0000
parents 5c54a1f94050
children d28e8b76b36f
files bin/rdfdb
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/bin/rdfdb	Sun Jun 05 02:25:31 2016 +0000
+++ b/bin/rdfdb	Sun Jun 05 03:04:03 2016 +0000
@@ -404,15 +404,15 @@
 
     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)