mozilla/zamboni — pull request #401 by crankycoder (2012-09-04 15:57:28+00:00)
Title: compressed patch for metlog

This adds a METLOG_CONF and METLOG attribute to the settings so that we have access to metlog

We've also added 2 new options to the zadmin.generate-error button to instrument metlog directly so that we can verify everything is wired up correctly in a production environment

Squashed commit of the following:

commit 7c6190d152c33891ef2df2e2ab84ae7d207c91f8
Author: Victor Ng
Date: Tue Sep 4 11:53:32 2012 -0400

Added explicit enabling of a logger to work around dictConfig disabling unknown loggers

commit 7c8898f55e991145ebd0d878a28bd5c59af0f002
Author: Victor Ng
Date: Fri Aug 31 15:45:54 2012 -0400

Squashed commit of the following:

commit befff34c7d3221402b120465f414359036818788
Author: Rob Miller
Date: Wed Aug 29 15:04:54 2012 -0700

add tests for use of metlog StdLibLoggingSender

commit eaab072c13861cb7d4f23b047aacb859e7955f95
Author: Rob Miller
Date: Wed Aug 29 13:02:18 2012 -0700

shorten 'metlog_client' to 'metlog', more useful metlog sender defaults, play better w/ existing settings rig, bump metlog-py revision

commit e58cddfb663a5d526d1e18396db5909a2716fb25
Author: Victor Ng
Date: Tue Aug 28 16:44:18 2012 -0400

dropped metlog_shim until the initial patch for metlog lands in
zamboni

commit 549fcb5c6293f9895139ae796c9247c6da77de2b
Author: Victor Ng
Date: Mon Aug 27 13:17:59 2012 -0400

moved SITE_URL from lib/settings_base.py into
settings_local_mkt.py.dist

commit 905d64fc08ce609e3c3482d0e46d2375a605c71c
Author: Victor Ng
Date: Mon Aug 27 13:15:15 2012 -0400

reverted lib/settings_base.py database settings back to empty
configuration for hostname, username and password

pushed local database config for mysql into settings_local_mkt.py.dist

commit d52c602f5ff989f97fc73a0207217a0f7b0abc3b
Author: Victor Ng
Date: Mon Aug 27 12:32:10 2012 -0400

changed the default sender in lib/settings_base so that tests can
properly caputre metlog results

added options to the generate-error form to explicitly hook the metlog
client

commit a5437f63b7ee81920ea83752b61d898ffe0f00f8
Author: Victor Ng
Date: Fri Aug 24 16:57:32 2012 -0400

updated the production pip requirement file to include
metlog-py==0.9.4

commit 790806e3d38649d944a58e28293f173dfee102ee
Author: Victor Ng
Date: Fri Aug 24 15:46:57 2012 -0400

switched the MetlogTastypie handler back to the old SentryHandler

commit a4e06fd7aa7b64da7f72fc2055d23da2499005fc
Author: Victor Ng
Date: Fri Aug 24 15:14:26 2012 -0400

updated the default Metlog client to only use StdOut.

Added a sample settings_local_mkt.py.dist which includes a disabled
sample configuration to override the metlog configuration for the
local deployment.

commit 0315f10e70b5007a0e3d9126f941d34da81ec86d
Author: Victor Ng
Date: Fri Aug 24 14:10:07 2012 -0400

changed instantiation of the metlog client to use client_from_dict_config

commit adf3ef906569a50dd7dad8ae707c911bfceeb6f7
Author: Victor Ng
Date: Fri Aug 24 14:06:28 2012 -0400

pushed the instantiation of a single metlog client into the settings
module

commit eb3939dff168ea7cdac38fa9fc36229cfbf62f7d
Author: Victor Ng
Date: Fri Aug 24 08:29:01 2012 -0400

added in a MetlogTastypieHandler class to redirect tastypie exceptions
into metlog's raven extension