Re: [Openstack] Logging, 500, Debugging

2011-04-04 Thread Zed A. Shaw
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/

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Logging, 500, Debugging

2011-04-04 Thread Zed A. Shaw
On Mon, Apr 04, 2011 at 05:54:53PM -0500, Michael Barton wrote:
> On Mon, Apr 4, 2011 at 4:50 PM, Zed A. Shaw  wrote:
> > I'm currently trying to debug some changes to the Swift proxy server and
> > finding the logging facilities a little obtuse.  Reading through:
> 
> Most tracebacks should go to the logs, but yeah, there just isn't a
> lot of debug-level logging in the Swift proxy server.  You might need
> to add logs for whatever it is you want to see.

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.

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

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Logging, 500, Debugging

2011-04-04 Thread Michael Barton
On Mon, Apr 4, 2011 at 4:50 PM, Zed A. Shaw  wrote:
> I'm currently trying to debug some changes to the Swift proxy server and
> finding the logging facilities a little obtuse.  Reading through:


Most tracebacks should go to the logs, but yeah, there just isn't a
lot of debug-level logging in the Swift proxy server.  You might need
to add logs for whatever it is you want to see.

-- Mike

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Logging, 500, Debugging

2011-04-04 Thread Zed A. Shaw
I'm currently trying to debug some changes to the Swift proxy server and
finding the logging facilities a little obtuse.  Reading through:

http://swift.openstack.org/deployment_guide.html#general-server-configuration

It seems there's an ability to do this:

log_level = INFO

Which, to me means I can do this:

log_level = DEBUG

Yet, no amount of configuration change in any of the various files
mentioned in the above guide or in:

http://swift.openstack.org/development_saio.html

Logs a single stack trace, a single header, or any other information
essential for debugging.

Can someone who has been doing development give some instructions for
turning on "insane developer logging"?  If there is not facility for
this then let me know so I can add it.

Thanks.

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

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp