← Back to team overview

openstack team mailing list archive

Re: Logging, 500, Debugging

 

On Mon, Apr 04, 2011 at 06:15:42PM -0500, Greg Holt wrote:
> 
> On Apr 4, 2011, at 5:58 PM, Zed A. Shaw wrote:
> 
> > Yep, that's what I ended up doing, also there's a few discrepancies
> > between LOG_LEVEL0 as the "default" in the docs, rsyslog not being
> > configured with LOG_LEVEL0, and the use of the catch_errors
> > middleware.  I'll try to write something up about it.
> > 
> 
> Hmm, that seems strange. I assume you mean LOG_LOCAL0 for the
> log_facility, which is different than log_level. LOG_LOCAL0 is
> configured to go to /var/log/syslog by default on Ubuntu 10.04 at
> least.

Right, LOG_LOCAL0 is used in the example .conf files, but the defaults
in the code are a variety of LOG_LOCAL* settings, and then the SAIO
rsyslog.conf has local1-4 but no local0.  So, when someone uses the
default configs they're led to believe that everything goes to local0
but it doesn't, then if they manually set it in rsyslog the logs come
through.

I also had to remove the catch_errors WSGI so that it'd log the
exceptions.

-- 
Zed A. Shaw
http://zedshaw.com/



References