mattermost-mobile/ios/ErrorReporting/Sentry.swift
Mattermost Build 3c112f68e1
fix(MM-63460): HTTPClientError spam (#8693) (#8700)
(cherry picked from commit 1ddaf5c32f)

Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
2025-03-21 08:01:36 +02:00

27 lines
680 B
Swift

//
// Sentry.swift
// Mattermost
//
// Created by Avinash Lingaloo on 20/12/2022.
// Copyright © 2022 Facebook. All rights reserved.
//
import Foundation
import Sentry
func initSentryAppExt(){
if let SENTRY_ENABLED = Bundle.main.infoDictionary?["SENTRY_ENABLED"] as? String,
let SENTRY_DSN = Bundle.main.infoDictionary?["SENTRY_DSN_IOS"] as? String {
if(SENTRY_ENABLED=="true"){
SentrySDK.start { options in
options.dsn = SENTRY_DSN
options.enableAppHangTracking = false
options.enableCaptureFailedRequests = false
}
}
}
}
func testSentry(msg: String){
SentrySDK.capture(message: msg)
}