Public » MiniRedis Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

do not buffer logging output

Changeset 0a4221f55c4a

Parent 9b7be6e61a1c

by Profile picture of Benjamin PollackBenjamin Pollack

Changes to one file · Browse files at 0a4221f55c4a Showing diff from parent 9b7be6e61a1c Diff from another changeset...

Change 1 of 1 Show Entire File miniredis.py Stacked
 
53
54
55
56
 
 
57
58
59
 
53
54
55
 
56
57
58
59
60
@@ -53,7 +53,8 @@
  def log(self, client, s):   if self.logging:   who = '%s:%s' % client.socket.getpeername() if client else 'SERVER' - print '%s: %s' % (who, s) + sys.stdout.write('%s: %s\n' % (who, s)) + sys.stdout.flush()     def select(self, client, db):   if db not in self.tables: