Re: error in 1.4.2
Hunter Matthews <[email protected]> 31 Oct 2002 11:54:24 -0500
| Newsgroups | gmane.network.up2date.current.devel |
|---|---|
| Message-ID | <[email protected]> |
Bump your apachel logging up, and apply this patch.
Somethings broken in the logging code path, so its hard to debug
remotely.
===== src/current_apache.py 1.26 vs edited =====
--- 1.26/src/current_apache.py Sun Oct 6 14:43:44 2002
+++ edited/src/current_apache.py Thu Oct 31 11:53:31 2002
@@ -190,6 +190,9 @@
# Fixme: need to pass req object here?
result = callAPIMethod(method, params)
except:
+ apacheLog('Exception at callAPIMethod()', 'NOTICE')
+ apacheLog('method was %s' % method, 'NOTICE')
+ apacheLog('params were %s' % pprint.pformat(params),
'NOTICE')
logException()
return apache.HTTP_BAD_REQUEST
On Thu, 2002-10-31 at 11:27, Rob Hagopian wrote:
> I'm getting this in the http error log using 1.4.2 w/various clients:
>
> [Thu Oct 31 11:20:07 2002] [error] PythonHandler current_apache: Traceback
> (innermost last):
> [Thu Oct 31 11:20:07 2002] [error] PythonHandler current_apache: File
> "/usr/lib/python1.5/site-packages/mod_python/apache.py", line 185, in
> Dispatch
> [Thu Oct 31 11:20:07 2002] [error] PythonHandler current_apache: File
> "/usr/share/current/current_apache.py", line 193, in handler
> [Thu Oct 31 11:20:07 2002] [error] PythonHandler current_apache: File
> "/usr/share/current/logger.py", line 81, in logException
> [Thu Oct 31 11:20:07 2002] [error] PythonHandler current_apache:
> AttributeError: 'None' object has no attribute 'write'
>
> Doesn't seem to cause any problems, but... :-)
>
> -Rob
> _______________________________________________
> Current-server mailing list
> [email protected]
> http://lists.dulug.duke.edu/mailman/listinfo/current-server
>
>
--
Hunter Matthews Unix / Network Administrator
Office: BioScience 145/244 Duke Univ. Biology Department
Key: F0F88438 / FFB5 34C0 B350 99A4 BB02 9779 A5DB 8B09 F0F8 8438
Never take candy from strangers. Especially on the internet.