diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e0897fd..b168b25b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Backtrace Unity Release Notes +## Version 3.2.2 +- Fixed native iOS attributes + ## Version 3.2.1 - Android stack trace parser improvements, - Fixed Android NDK initialization when database directory doesn't exist, diff --git a/Runtime/BacktraceClient.cs b/Runtime/BacktraceClient.cs index 48b4883e..d600b6d8 100644 --- a/Runtime/BacktraceClient.cs +++ b/Runtime/BacktraceClient.cs @@ -327,7 +327,6 @@ private void Awake() private void OnDestroy() { - Debug.Log("Disabling Backtrace integration"); Enabled = false; Application.logMessageReceived -= HandleUnityMessage; } @@ -508,7 +507,7 @@ record = Database.Add(data); if (record != null) { record.Dispose(); - if (result.Status == BacktraceResultStatus.Ok && Database != null) + if (Database != null && result.Status != BacktraceResultStatus.ServerError) { Database.Delete(record); } @@ -620,6 +619,10 @@ private void SendUnhandledException(BacktraceUnhandledException exception) private bool ShouldSendReport(Exception exception, List attachmentPaths, Dictionary attributes) { + if(!Enabled) + { + return false; + } // guess report type var filterType = ReportFilterType.Exception; if (exception is BacktraceUnhandledException) diff --git a/Runtime/BacktraceDatabase.cs b/Runtime/BacktraceDatabase.cs index b13123a5..11bd165d 100644 --- a/Runtime/BacktraceDatabase.cs +++ b/Runtime/BacktraceDatabase.cs @@ -399,7 +399,7 @@ private void SendData(BacktraceDatabaseRecord record) StartCoroutine( BacktraceApi.Send(backtraceData, record.Attachments, queryAttributes, (BacktraceResult sendResult) => { - if (sendResult.Status == BacktraceResultStatus.Ok) + if (sendResult.Status != BacktraceResultStatus.ServerError) { Delete(record); } diff --git a/Runtime/Model/BacktraceData.cs b/Runtime/Model/BacktraceData.cs index e7edf398..4dc845d5 100644 --- a/Runtime/Model/BacktraceData.cs +++ b/Runtime/Model/BacktraceData.cs @@ -45,7 +45,7 @@ public class BacktraceData /// /// Version of the C# library /// - public const string AgentVersion = "3.2.1"; + public const string AgentVersion = "3.2.2"; /// /// Application thread details diff --git a/Runtime/Services/BacktraceApi.cs b/Runtime/Services/BacktraceApi.cs index d6975dda..5b944edc 100644 --- a/Runtime/Services/BacktraceApi.cs +++ b/Runtime/Services/BacktraceApi.cs @@ -229,7 +229,19 @@ public IEnumerator Send(string json, List attachments, Dictionary - /// Set when client limit is reached + /// Set when client/server limit is reached /// LimitReached, /// diff --git a/iOS/libBacktrace-Unity-Cocoa.a b/iOS/libBacktrace-Unity-Cocoa.a index 66e11dab..b7d870d3 100644 Binary files a/iOS/libBacktrace-Unity-Cocoa.a and b/iOS/libBacktrace-Unity-Cocoa.a differ diff --git a/package.json b/package.json index 822234d9..b2ad84dc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "io.backtrace.unity", "displayName": "Backtrace", - "version": "3.2.1", + "version": "3.2.2", "unity": "2017.1", "description": "Backtrace's integration with Unity games allows customers to capture and report handled and unhandled Unity exceptions to their Backtrace instance, instantly offering the ability to prioritize and debug software errors.", "keywords": [