On 07/02/18 05:14, Jesus Cea wrote:
> On 07/02/18 03:55, Graham Dumpleton wrote:
>> On this specific issue, it will logs lots of stuff if you have Apache log 
>> level set to info.
>>
>>     LogLevel info
>>
>> For request-timeout expiring it even logs stack traces for you if it can so 
>> you can see where it gets stuck.
> 
> Not documented :-).
> 
> Could you possibly change "LogLevel info" to "LogLevel wsgi:info" in the
> docs?.
> 
> Also, traceback is partial when a thread is inside a C routine, because
> it is showed as the last called C function and the line number of the
> entry point. We can not see in what line is it waiting for a lock, for
> instance.

This is a non sequitor for the rest of the email. Ignore for now.


> I see the same effect in all the traceback: the documented line numbers
> are the starting line of each calling function, not the linenumber of
> the actual call.
> 
> Is this a bug?.

Let me elaborate. I have this traceback (I an generating a deadlock on
purpose):

"""
[Wed Feb 07 04:43:41.021026 2018] [wsgi:info] [pid 27347:tid
140119465424768] mod_wsgi (pid=27347): Thread 140119266129664 executing
file "/home/buffy/wsgi.py", line 449, in get_listado
[Wed Feb 07 04:43:41.021032 2018] [wsgi:info] [pid 27347:tid
140119465424768] mod_wsgi (pid=27347): called from file
"/home/buffy/wsgi.py", line 946, in do_get_listing,
[Wed Feb 07 04:43:41.021037 2018] [wsgi:info] [pid 27347:tid
140119465424768] mod_wsgi (pid=27347): called from file
"/home/buffy/wsgi.py", line 1033, in application.
"""

Let see what lines 449, 496 and 1033 are:

"""
jcea@jcea:~/hg/webdav2cloud$ sed -n -e 449p -e 946p -e 1033p wsgi.py
        def get_listado(self, URI):
def do_get_listing(environ, URI, start_response) :
def application(environ, start_response) :
"""

The line number is the function definition point, not the actual line
doing the call.

-- 
Jesús Cea Avión                         _/_/      _/_/_/        _/_/_/
[email protected] - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
Twitter: @jcea                        _/_/    _/_/          _/_/_/_/_/
jabber / xmpp:[email protected]  _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to