Update demo apps
This commit is contained in:
Родитель
516c2cb125
Коммит
5a4e47ef50
|
@ -291,16 +291,16 @@ enum StartupMode { APPCENTER, ONECOLLECTOR, BOTH, NONE, SKIP };
|
|||
#pragma mark - MSACCrashesDelegate
|
||||
|
||||
- (BOOL)crashes:(nonnull MSACCrashes *)crashes shouldProcessErrorReport:(nonnull MSACErrorReport *)errorReport {
|
||||
NSLog(@"Should process error report with: %@", errorReport.exceptionReason);
|
||||
NSLog(@"Should process error report with: %@", [errorReport description]);
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)crashes:(nonnull MSACCrashes *)crashes willSendErrorReport:(nonnull MSACErrorReport *)errorReport {
|
||||
NSLog(@"Will send error report with: %@", errorReport.exceptionReason);
|
||||
NSLog(@"Will send error report with: %@", [errorReport description]);
|
||||
}
|
||||
|
||||
- (void)crashes:(nonnull MSACCrashes *)crashes didSucceedSendingErrorReport:(nonnull MSACErrorReport *)errorReport {
|
||||
NSLog(@"Did succeed error report sending with: %@", errorReport.exceptionReason);
|
||||
NSLog(@"Did succeed error report sending with: %@", [errorReport description]);
|
||||
}
|
||||
|
||||
- (void)crashes:(nonnull MSACCrashes *)crashes
|
||||
|
|
|
@ -212,18 +212,28 @@ class AppDelegate: UIResponder, UIApplicationDelegate, CrashesDelegate, CLLocati
|
|||
// Crashes Delegate
|
||||
|
||||
func crashes(_ crashes: Crashes, shouldProcess errorReport: ErrorReport) -> Bool {
|
||||
|
||||
// return true if the crash report should be processed, otherwise false.
|
||||
if errorReport.exceptionReason != nil {
|
||||
NSLog("Should process error report with: %@", errorReport.description);
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func crashes(_ crashes: Crashes!, willSend errorReport: ErrorReport!) {
|
||||
if errorReport.exceptionReason != nil {
|
||||
NSLog("Will send error report with: %@", errorReport.description);
|
||||
}
|
||||
}
|
||||
|
||||
func crashes(_ crashes: Crashes!, didSucceedSending errorReport: ErrorReport!) {
|
||||
if errorReport.exceptionReason != nil {
|
||||
NSLog("Did succeed error report sending with: %@", errorReport.description);
|
||||
}
|
||||
}
|
||||
|
||||
func crashes(_ crashes: Crashes, didFailSending errorReport: ErrorReport, withError error: Error?) {
|
||||
if errorReport.exceptionReason != nil {
|
||||
NSLog("Did fail sending report with: %@, and error: %@", errorReport.description);
|
||||
}
|
||||
}
|
||||
|
||||
func attachments(with crashes: Crashes, for errorReport: ErrorReport) -> [ErrorAttachmentLog] {
|
||||
|
|
|
@ -162,22 +162,22 @@ enum StartupMode { appCenter, oneCollector, both, none, skip };
|
|||
#pragma mark - MSACCrashesDelegate
|
||||
|
||||
- (BOOL)crashes:(nonnull MSACCrashes *)crashes shouldProcessErrorReport:(nonnull MSACErrorReport *)errorReport {
|
||||
NSLog(@"%@ Should process error report with: %@", kMSLogTag, errorReport.exceptionReason);
|
||||
NSLog(@"%@ Should process error report with: %@", kMSLogTag, [errorReport description]);
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)crashes:(nonnull MSACCrashes *)crashes willSendErrorReport:(nonnull MSACErrorReport *)errorReport {
|
||||
NSLog(@"%@ Will send error report with: %@", kMSLogTag, errorReport.exceptionReason);
|
||||
NSLog(@"%@ Will send error report with: %@", kMSLogTag, [errorReport description]);
|
||||
}
|
||||
|
||||
- (void)crashes:(nonnull MSACCrashes *)crashes didSucceedSendingErrorReport:(nonnull MSACErrorReport *)errorReport {
|
||||
NSLog(@"%@ Did succeed error report sending with: %@", kMSLogTag, errorReport.exceptionReason);
|
||||
NSLog(@"%@ Did succeed error report sending with: %@", kMSLogTag, [errorReport description]);
|
||||
}
|
||||
|
||||
- (void)crashes:(nonnull MSACCrashes *)crashes
|
||||
didFailSendingErrorReport:(nonnull MSACErrorReport *)errorReport
|
||||
withError:(nullable NSError *)error {
|
||||
NSLog(@"%@ Did fail sending report with: %@, and error: %@", kMSLogTag, errorReport.exceptionReason, error.localizedDescription);
|
||||
NSLog(@"%@ Did fail sending report with: %@, and error: %@", kMSLogTag, [errorReport description], error.localizedDescription);
|
||||
}
|
||||
|
||||
- (NSArray<MSACErrorAttachmentLog *> *)attachmentsWithCrashes:(MSACCrashes *)crashes forErrorReport:(MSACErrorReport *)errorReport {
|
||||
|
|
|
@ -147,26 +147,26 @@ class AppDelegate: NSObject, NSApplicationDelegate, CrashesDelegate, CLLocationM
|
|||
|
||||
func crashes(_ crashes: Crashes!, shouldProcess errorReport: ErrorReport!) -> Bool {
|
||||
if errorReport.exceptionReason != nil {
|
||||
NSLog("Should process error report with: %@", errorReport.exceptionReason);
|
||||
NSLog("Should process error report with: %@", errorReport.description);
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func crashes(_ crashes: Crashes!, willSend errorReport: ErrorReport!) {
|
||||
if errorReport.exceptionReason != nil {
|
||||
NSLog("Will send error report with: %@", errorReport.exceptionReason);
|
||||
NSLog("Will send error report with: %@", errorReport.description);
|
||||
}
|
||||
}
|
||||
|
||||
func crashes(_ crashes: Crashes!, didSucceedSending errorReport: ErrorReport!) {
|
||||
if errorReport.exceptionReason != nil {
|
||||
NSLog("Did succeed error report sending with: %@", errorReport.exceptionReason);
|
||||
NSLog("Did succeed error report sending with: %@", errorReport.description);
|
||||
}
|
||||
}
|
||||
|
||||
func crashes(_ crashes: Crashes!, didFailSending errorReport: ErrorReport!, withError error: Error?) {
|
||||
if errorReport.exceptionReason != nil {
|
||||
NSLog("Did fail sending report with: %@, and error: %@", errorReport.exceptionReason, error?.localizedDescription ?? "null");
|
||||
NSLog("Did fail sending report with: %@, and error: %@", errorReport.description, error?.localizedDescription ?? "null");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -97,22 +97,22 @@
|
|||
#pragma mark - MSACCrashesDelegate
|
||||
|
||||
- (BOOL)crashes:(nonnull MSACCrashes *)crashes shouldProcessErrorReport:(nonnull MSACErrorReport *)errorReport {
|
||||
NSLog(@"Should process error report with: %@", errorReport.exceptionReason);
|
||||
NSLog(@"Should process error report with: %@", [errorReport description] );
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)crashes:(nonnull MSACCrashes *)crashes willSendErrorReport:(nonnull MSACErrorReport *)errorReport {
|
||||
NSLog(@"Will send error report with: %@", errorReport.exceptionReason);
|
||||
NSLog(@"Will send error report with: %@", [errorReport description]);
|
||||
}
|
||||
|
||||
- (void)crashes:(nonnull MSACCrashes *)crashes didSucceedSendingErrorReport:(nonnull MSACErrorReport *)errorReport {
|
||||
NSLog(@"Did succeed error report sending with: %@", errorReport.exceptionReason);
|
||||
NSLog(@"Did succeed error report sending with: %@", [errorReport description]);
|
||||
}
|
||||
|
||||
- (void)crashes:(nonnull MSACCrashes *)crashes
|
||||
didFailSendingErrorReport:(nonnull MSACErrorReport *)errorReport
|
||||
withError:(nullable NSError *)error {
|
||||
NSLog(@"Did fail sending report with: %@, and error: %@", errorReport.exceptionReason, error.localizedDescription);
|
||||
NSLog(@"Did fail sending report with: %@, and error: %@", [errorReport description], error.localizedDescription);
|
||||
}
|
||||
|
||||
- (NSArray<MSACErrorAttachmentLog *> *)attachmentsWithCrashes:(MSACCrashes *)crashes forErrorReport:(MSACErrorReport *)errorReport {
|
||||
|
|
|
@ -63,16 +63,28 @@ class AppDelegate : UIResponder, UIApplicationDelegate, CrashesDelegate {
|
|||
|
||||
// Crashes Delegate
|
||||
func crashes(_ crashes: Crashes!, shouldProcess errorReport: ErrorReport!) -> Bool {
|
||||
if errorReport.exceptionReason != nil {
|
||||
NSLog("Should process error report with: %@", errorReport.description);
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func crashes(_ crashes: Crashes!, willSend errorReport: ErrorReport!) {
|
||||
if errorReport.exceptionReason != nil {
|
||||
NSLog("Will send error report with: %@", errorReport.description);
|
||||
}
|
||||
}
|
||||
|
||||
func crashes(_ crashes: Crashes!, didSucceedSending errorReport: ErrorReport!) {
|
||||
if errorReport.exceptionReason != nil {
|
||||
NSLog("Did succeed error report sending with: %@", errorReport.description);
|
||||
}
|
||||
}
|
||||
|
||||
func crashes(_ crashes: Crashes!, didFailSending errorReport: ErrorReport!, withError error: Error?) {
|
||||
if errorReport.exceptionReason != nil {
|
||||
NSLog("Did fail sending report with: %@, and error: %@", errorReport.description);
|
||||
}
|
||||
}
|
||||
|
||||
func attachments(with crashes: Crashes!, for errorReport: ErrorReport!) -> [ErrorAttachmentLog] {
|
||||
|
|
Загрузка…
Ссылка в новой задаче