【问题标题】:Is there a way to deactivate gunicorn log from sentry?有没有办法从哨兵停用 gunicorn 日志?
【发布时间】:2020-08-05 18:48:45
【问题描述】:

我通过 aiohttp 集成将 Sentry 集成到 Django 项目中,该应用程序使用 gunicorn 运行。问题是哨兵中的日志是重复的,一个是由 gunicorn 发送的,另一个是由 aiohttp 记录器发送的,我可以禁用 gunicorn 日志来防止这种情况吗?

【问题讨论】:

    标签: python gunicorn sentry


    【解决方案1】:

    在sdk的init之前解决了

    from sentry_sdk.integrations.logging import ignore_logger ignore_logger('gunicorn.error')

    【讨论】:

      猜你喜欢
      • 2021-06-27
      • 2015-08-27
      • 1970-01-01
      • 2021-11-14
      • 1970-01-01
      • 1970-01-01
      • 2020-12-03
      • 2016-04-25
      • 2018-09-17
      相关资源
      最近更新 更多