推荐学习书目
› 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 · Nov 3, 2015 · 3468 views
    This topic created in 3981 days ago, the information mentioned may be changed or developed.

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

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

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

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

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

    3 replies  •  2015-11-04 08:04:28 +08:00
    kinghui
        1
    kinghui  
       Nov 3, 2015
    sentry
    airyland
        2
    airyland  
       Nov 3, 2015 via iPhone
    我们直接用微信企业号推送消息
    Slienc7
        3
    Slienc7  
       Nov 4, 2015 via Android
    Pushbullet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   806 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 21:59 · PVG 05:59 · LAX 14:59 · JFK 17:59
    ♥ Do have faith in what you're doing.