[email protected]
[Top] [All Lists]

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

Subject: Re: [Medusa-dev] medusa & asyncore.loop -- termination & GUI
From: Bill Janssen
Date: Fri, 28 Nov 2008 11:47:56 PST
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],
_______________________________________________
Medusa-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/medusa-dev

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Medusa-dev] medusa & asyncore.loop -- termination & GUI, Bill Janssen <=