oops datedir到amqp repubisher。
oops_datedir2amqp的Python项目详细描述
Copyright (c) 2011, Canonical Ltd
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
oops_datedir2amqp包提供了一个脚本,该脚本将重新传输oops 报告(http://pypi.python.org/pypi/oops)存储在AMQP上的DateDir回购中, 正在清理回购协议。
依赖关系
- Python2.6+
- oops_datedir_回购
- 哎呀,AMQP
测试依赖项
用法
使用buildout构建包(请参见开发中)。
运行脚本:
$ bin/datedir2amqp --host XX --username XX --password XX --vhost XX \ --exchange XX --repo XX
请注意,回购协议应该与您提供给您的 在创建oopse的任何进程中使用datedirrepo。
此设置的常见用途是作为回退:在应用程序报表中 直接使用amqp,将datedirrepo配置为fallback,然后使用datedir2amqp 获取和重新配置在AMQP期间生成的任何OOPS报告 服务器不可用。
安装
在具有所有可用依赖项的环境中运行setup.py,或者 将工作目录添加到pythonpath。
开发
上游开发发生在 https://launchpad.net/python-oops-datedir2amqp。设置工作区的步骤 开发,如果依赖项不是立即可用的,则可以使用 /bootstrap.py创建bin/buildout,然后bin/py获取python解释器 具有可用的依赖项。
要使用您选择的运行程序运行测试,测试套件是 oops_datedir2amqp.tests.test_套件。
例如:
$ bin/py -m testtools.run oops_datedir2amqp.tests.test_suite
或者,您可以使用testrepository:
$ testr init $ testr run