17 Commits

Author SHA1 Message Date
David Goetz
51ce438f7f changing /usr/bin/python to /usr/bin/env python 2011-03-24 15:51:44 -07:00
Clay Gerrard
5d0bc6b9c7 logging refactor to support proxy access logs
New log level "notice" set to python log level 25 maps to syslog priority
LOG_NOTICE.  Used for some messages in the proxy server, but will be available
to all apps using the LogAdapter returned from get_logger.  Cleaned up some
code in get_logger so that console logging works with log_routes and removed
some unneeded bits.  NamedFormatter functionality was split between LogAdapter
(which now inherits from logging.LoggerAdapter) and TxnFormatter (which now is
only responsible for adding the log records txn_id).

The proxy server app now configures a separate logger for access line logging.
By default it will use the same settings as the regular proxy logger.
2011-02-10 14:59:52 -06:00
gholt
9dd1e2ae84 Updates to remove _ usage that is not i18n related 2011-01-19 15:21:57 -08:00
Clay Gerrard
ff0e62d914 reworked tnx logging 2011-01-07 21:17:29 +00:00
Clay Gerrard
6c1bf02a62 pep8 fo' realz 2011-01-05 09:32:19 -06:00
Anne Gentle
8823427161 Changed copyright notices on py files and the single rst file with a copyright notice 2011-01-04 17:34:43 -06:00
Clay Gerrard
68a9acf9b8 pep8 2011-01-04 16:12:56 -06:00
Clay Gerrard
97028e0b9c fixed missing NamedLogger import in bin/swift-bench, refactored
LogAdapter.tnx_id so that it works with multiple calls to get_logger, fixed
common.middleware.catch_errors to only call get_logger if it needs too, renamed
x-cf-trans-id to x-swift-tnx-id
2011-01-04 16:00:01 -06:00
gholt
57970bdeb5 Cleaned up the bins; patched the broken test (when run standalone) 2010-12-29 12:00:08 -08:00
Michael Barton
f432269013 add gettext to all binaries 2010-12-22 17:18:30 +00:00
Chuck Thier
43b3bf6095 Updated swift-bench to put to several containers (20 by default) instead of just 1 2010-10-20 22:04:03 +00:00
Chuck Thier
84a163d736 Somehow I missed the commit to print the whole help, not just usage 2010-10-07 21:36:39 +00:00
Chuck Thier
18245c1adc Updated to print usage by default if no args are passed, and added --saio to run with saio defaults 2010-10-04 15:09:53 +00:00
Chuck Thier
d7d0bd4253 added apache license to the new files 2010-10-01 19:50:34 +00:00
Chuck Thier
117aef456d Refactored swift-bench to reuse client.py and direct_client.py 2010-10-01 19:46:35 +00:00
Chuck Thier
f71a85a05b Missed a rename 2010-09-28 15:05:08 +00:00
Chuck Thier
6cef24dcd7 Initial checkin of benchmark code 2010-09-27 23:10:09 +00:00