V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
aiqier
V2EX  ›  Python

python 项目以何种方式报警?

  •  
  •   aiqier · 2015-11-03 17:53:53 +08:00 · 2652 次点击
    这是一个创建于 3102 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我们的项目都是 python 写的 server 。

    目前的做法是,在发生异常的时候,获得那段异常栈信息,然后发送给一个消息模块,由这个消息模块,来将错误通过邮件,或者是短信的方式发送 给运维或者 RD 的同学。

    消息模块是 rabbitmq ,所有系统将错误发送给 rabbitmq ,由 mq 来转发给错误处理服务。(可能是短信,可能是邮件)

    这比之前发现错误。通过流水号去查日志要好很多了,但是。。。。

    请问这个做法标准么?还有更专业更好的做法么?

    3 条回复    2015-11-04 08:04:28 +08:00
    kinghui
        1
    kinghui  
       2015-11-03 17:55:12 +08:00
    sentry
    airyland
        2
    airyland  
       2015-11-03 20:28:18 +08:00 via iPhone
    我们直接用微信企业号推送消息
    Slienc7
        3
    Slienc7  
       2015-11-04 08:04:28 +08:00 via Android
    Pushbullet
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2154 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 10:48 · PVG 18:48 · LAX 03:48 · JFK 06:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.