TeamPGM / PagerMaid-Pyro

Advanced Multi-Featured Telegram UserBot by pyrogram.
GNU Affero General Public License v3.0
620 stars 73 forks source link

🐛确保sentry和mixpanel不会在初始配置关闭时上报数据 #71

Closed AkkiaS7 closed 7 months ago

AkkiaS7 commented 7 months ago

Description

Please carefully read the Contributing note and Code of conduct before making any pull requests. And, Do not make a pull request to merge into master unless it is a hotfix. Use the development branch instead.

Issues fixed by this PR

  1. mixpanel在每次reload时读取最新的配置
  2. 如果ALLOW_ANALYTIC为False, mixpanel在首次启动时不应上传用户信息
  3. 如果Config.ERROR_REPORT为False,启动时不加载sentry,避免sentry自动集成FastAPI

Type of changes

Checklist:

AkkiaS7 commented 7 months ago

sentry集成太深了,看起来除了重启以外没有好的方法能解除所有集成