[Medusa-dev] medusa & asyncore.loop -- termination & GUI

Bill Janssen janssen at parc.com
Fri Nov 28 20:47:56 CET 2008


The Medusa http_server.http_request class makes a number of calls to
"self.log_info", but has no "log_info" method.  Here's a simple patch
which adds one.

Bill

*** http_server.py	2003-07-03 17:24:02.000000000 -0700
--- http_server.py.fixed	2008-11-28 11:45:01.000000000 -0800
***************
*** 277,282 ****
--- 277,285 ----
  
          return time.strftime ( '%d/%b/%Y:%H:%M:%S ', gmt) + offset
  
+     def log_info (self, msg, level):
+         self.channel.log_info(msg, level)
+ 
      def log (self, bytes):
          self.channel.server.logger.log (
                  self.channel.addr[0],


More information about the Medusa-dev mailing list