On 09/05/2011 02:03 AM, Reinout van Rees wrote:
> On 05-09-11 00:58, Gelonida N wrote:
>> Im am debugging a django application.
>>
>> If I set  DEBUG=True
>> then I can see error messages on the browser.
>>
>> Is there any way to see the same error messages in the server log file?
>> Occasionally (especially for rpc client or Ajax requests I would prefer
>> looking at the log file instead of looking at the browser error messages)
> 
> With django 1.3, those 500 errors are logged to python's default
> logging. So if you've got django 1.3 and a properly set up logging,
> you'd get those logs.
> 
This is what I expected, but I didn't see all the messages showing up.

I see my own log traces.
In many situations I do see error messages in the log output.

At a certain moment I managed to have a broken system, where nothing
showed up in the log files.
However when I accessed  the server with a browser I got django's error
report pointing out a syntax error (typo) in my code.

Unfortunately I did not take a snapshot of my code and can't reproduce
this issue now.


I will repost as soon as I encounter this kind of issue again,

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to