Changeset 71:7b5ddbb2b9bb in ralphm-patches


Ignore:
Timestamp:
Oct 27, 2012, 2:21:15 AM (8 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Message:

Fix traffic log format string references.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c2s_server_factory.patch

    r68 r71  
    11# HG changeset patch
    2 # Parent f164cc75b8337933cc6dd9c7f43424f3dbd74dee
     2# Parent 8cb185c88211ac69faa924f6e93425d102daa2bc
    33Add factory for accepting client connections.
    44
     
    171171+                        direction=direction, streamID=xs.serial, data=data)
    172172+
    173 +            log.msg(format="Connection %(streamID) made", streamID=xs.serial)
     173+            log.msg(format="Connection %(streamID)s made", streamID=xs.serial)
    174174+            xs.rawDataInFn = lambda data: logData("RECV", data)
    175175+            xs.rawDataOutFn = lambda data: logData("SEND", data)
     
    188188         """
    189189+        if self.logTraffic:
    190 +            log.msg(format="Connection %(streamID) initialized",
     190+            log.msg(format="Connection %(streamID)s initialized",
    191191+                    streamID=xs.serial)
    192192 
     
    198198         """
    199199+        if self.logTraffic:
    200 +            log.msg(format="Connection %(streamID) lost",
     200+            log.msg(format="Connection %(streamID)s lost",
    201201+                    streamID=self.xmlstream.serial)
    202202+
Note: See TracChangeset for help on using the changeset viewer.