refactor: 移除更多 sentry 敏感信息上传

This commit is contained in:
KAAAsS 2024-07-01 20:35:42 +08:00
parent 84092c252d
commit 9bce58f8a1
Signed by: KAAAsS
GPG Key ID: D22F53AF662411FE

View File

@ -77,11 +77,6 @@ def init():
sample_rate=1.0,
environment=environment
)
with sentry_sdk.configure_scope() as scope:
scope.add_attachment(path="data")
import machineid
sentry_sdk.set_user({"hwid": machineid.id()[:16]})
return version, sentry_sdk
class HygException(Exception):