[mod_python] apache API and mod_python <-> protocol module integration

Gregory (Grisha) Trubetskoy grisha at modpython.org
Wed Jul 16 23:20:22 EST 2003


There is some sort of an error in your code, but because of a bug that was
fixed earlier your mod_python doesn't log the error in the log correctly.

Attached is another patch, this time to apache.py, that should log the
error correctly.

Grisha

On Wed, 16 Jul 2003, fitnah55 wrote:

>
> duh.. add the port to listen
>
> heh
>
> coincidentally, i don't think the echo example is working
>
> [Tue Jul 15 13:03:18 2003] [error] python_connection:
> ConnectionDispatch() returned nothing.
>
> hmm
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>
-------------- next part --------------
--- apache.py	12 Jul 2003 02:40:45 -0000	1.70
+++ apache.py	16 Jul 2003 20:23:24 -0000	1.71
@@ -54,7 +54,7 @@
  #
  # Originally developed by Gregory Trubetskoy.
  #
- # $Id: apache.py,v 1.70 2003/07/12 02:40:45 grisha Exp $
+ # $Id: apache.py,v 1.71 2003/07/16 20:23:24 grisha Exp $
 
 import sys
 import traceback
@@ -103,7 +103,7 @@
         try:
 
             handler = conn.hlist.handler
-            
+
             # split module::handler
             l = handler.split('::', 1)
             module_name = l[0]
@@ -115,7 +115,7 @@
 
             # add the directory to pythonpath if
             # not there yet, or pythonpath specified
-            
+
             if config.has_key("PythonPath"):
                 # we want to do as little evaling as possible,
                 # so we remember the path in un-evaled form and
@@ -161,7 +161,8 @@
             try:
                 exc_type, exc_value, exc_traceback = sys.exc_info()
                 result = self.ReportError(exc_type, exc_value, exc_traceback, srv=conn.base_server,
-                                          phase=filter.name, hname=handler, debug=debug)
+                                          phase="ConnectionHandler",
+                                          hname=handler, debug=debug)
             finally:
                 exc_traceback = None
 


More information about the Mod_python mailing list