【问题标题】:How Sentry auto send log except to mail?Sentry如何自动发送日志,除了邮件?
【发布时间】:2014-02-25 02:02:15
【问题描述】:

我使用 Sentry 为我的项目记录异常,一切正常。

但我不知道如何让 Sentry 在出现异常时自动向我的电子邮件发送通知(例如 gmail、v.v)。

帮帮我。

# This is config setting:
# For more information check Django's documentation:
# https://docs.djangoproject.com/en/1.3/topics/email/?from=olddocs#e-mail-backends

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

EMAIL_HOST = 'localhost'
EMAIL_HOST_PASSWORD = ''
EMAIL_HOST_USER = ''
EMAIL_PORT = 25
EMAIL_USE_TLS = False

# The email address to send on behalf of
SERVER_EMAIL = 'my_mail@gmail.com'

【问题讨论】:

    标签: python django sentry


    【解决方案1】:

    检查您的哨兵设置

    转到 http:///account/settings/notifications/

    附: Django 通常通过电子邮件发送到“管理员”设置中的地址

    【讨论】:

    • 嘿,兄弟,对于发送有关错误的电子邮件,您有什么建议 - 来自哨兵,还是直接来自 django 和 celery?
    • 我更喜欢哨兵松弛集成或smth
    猜你喜欢
    • 2021-12-03
    • 2021-02-10
    • 2019-09-30
    • 2014-10-12
    • 1970-01-01
    • 1970-01-01
    • 2016-01-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多