Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 38] New - traceback on error handling log file

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

Back to topic list

[Issue 38] New - traceback on error handling log file

Reply

Author jjneely
Full name Jack Neely
Date 2006-05-13 11:42:43 PDT
Message http://current.tigri​s.org/issues/show_bu​g.cgi?id=38
                 Issue #|38
                 Summary|traceback on error handling log file
               Component|current
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|miscellaneous
             Assigned to|jjneely
             Reported by|jjneely






------- Additional comments from jjneely at tigris dot org Sat May 13 11:42:43 -0700 2006 -------
The following traceback occures if there is an error opening the log file. We
should handle this more gracefully.

In fact the Correct Solution(tm) is to use python's logger module instead of our
own now.

[Fri May 12 19:28:58 2006] [error] [client 38.100.239.25] PythonHandler
current_apache: Traceback (most recent call last):
[Fri May 12 19:28:58 2006] [error] [client 38.100.239.25] PythonHandler
current_apache: File
"/usr/lib/python2.3/​site-packages/mod_py​thon/apache.py", line 299, in
HandlerDispatch\n result = object(req)
[Fri May 12 19:28:58 2006] [error] [client 38.100.239.25] PythonHandler
current_apache: File "/usr/share/current/​current_apache.py", line 180,
in handler\n result = callAPIMethod(method, params)
[Fri May 12 19:28:58 2006] [error] [client 38.100.239.25] PythonHandler
current_apache: File "/usr/share/current/​current_apache.py", line 321,
in callAPIMethod\n % method, MANDATORY)
[Fri May 12 19:28:58 2006] [error] [client 38.100.239.25] PythonHandler
current_apache: File "/usr/share/current/logger.py", line 68, in log\n
logging_config['file​'].write(tmp)
[Fri May 12 19:28:58 2006] [error] [client 38.100.239.25] PythonHandler
current_apache: AttributeError: 'NoneType' object has no attribute
'write'

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

[Issue 38] New - traceback on error handling log file jjneely Jack Neely 2006-05-13 11:42:43 PDT
Messages per page: