Skip to content

Commit 44a6a1a

Browse files
committed
Version 1.1.1
1 parent 16f63d8 commit 44a6a1a

23 files changed

+170
-143
lines changed

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[Ll]ibrary/
2+
[Tt]emp/
3+
[Oo]bj/
4+
[Bb]uild/
5+
[Bb]uilds/
6+
Assets/AssetStoreTools*
7+
8+
# Visual Studio cache directory
9+
.vs/
10+
11+
# Autogenerated VS/MD/Consulo solution and project files
12+
ExportedObj/
13+
.consulo/
14+
*.csproj
15+
*.unityproj
16+
*.sln
17+
*.suo
18+
*.tmp
19+
*.user
20+
*.userprefs
21+
*.pidb
22+
*.booproj
23+
*.svd
24+
*.pdb
25+
*.opendb
26+
27+
# Unity3D generated meta files
28+
*.pidb.meta
29+
*.pdb.meta
30+
31+
# Unity3D Generated File On Crash Reports
32+
sysinfo.txt
33+
34+
# Builds
35+
*.apk
36+
*.unitypackage

.gitignore.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: objective-c
2+
osx_image: xcode8.3
3+
rvm:
4+
- 2.2
5+
before_install:
6+
- chmod a+x ./Scripts/install.sh
7+
- chmod a+x ./Scripts/build.sh
8+
install:
9+
- ./Scripts/install.sh
10+
script:
11+
- ./Scripts/build.sh

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Backtrace Unity Release Notes
22

3+
## Version 1.1.1 - 28.03.2019
4+
5+
- Detailed log information when Unity plugin cannot send data to Backtrace,
6+
- Unhandled exception condition that wont catch exceptions that starts with string : `[Backtrace]::`,
7+
- Added support for system stack frames,
8+
- Line ending fix.
9+
310
## Version 1.1.0 - 06.03.2019
411

512
- Support for multiple types of Attribute types - string, char, enum, int, float, double....

CHANGELOG.md.meta~HEAD

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fileFormatVersion: 2
2+
guid: 64d1b29db1befa740967d2d4305ad876
3+
TextScriptImporter:
4+
externalObjects: {}
5+
userData:
6+
assetBundleName:
7+
assetBundleVariant:

CHANGELOG.md.meta~HEAD.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md.meta~master

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fileFormatVersion: 2
2+
guid: 64d1b29db1befa740967d2d4305ad876
3+
TextScriptImporter:
4+
externalObjects: {}
5+
userData:
6+
assetBundleName:
7+
assetBundleVariant:

CHANGELOG.md.meta~master.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Tests/BacktraceAttributeTests.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,9 @@ public IEnumerator TestCorrectDictionaryGeneration_CreateCorrectAttributesDictio
4646
[UnityTest]
4747
public IEnumerator TestCorrectDictionaryGeneration_ReplaceAttributes_TheSameDictionaryAttributes()
4848
{
49-
var exception = new FileNotFoundException();
5049
var reportAttributeKey = "report_attr";
5150
var reportAttributeValue = $"{reportAttributeKey}-value";
52-
var reportAttributes = new Dictionary<string, object>() { { reportAttributeKey, reportAttributeValue } };
53-
5451
var clientAttributes = new Dictionary<string, object>() { { reportAttributeKey, $"{reportAttributeValue}-client" } };
55-
var exceptionReport = new BacktraceReport(exception, reportAttributes);
5652
Assert.IsFalse(clientAttributes[reportAttributeKey] as string == reportAttributeValue);
5753
yield return null;
5854
}

src/BacktraceClient.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,12 @@ public void HandleUnhandledExceptions()
226226
Application.logMessageReceived += HandleException;
227227
}
228228

229-
private void HandleException(string condition, string stackTrace, LogType type)
229+
private void HandleException(string message, string stackTrace, LogType type)
230230
{
231-
if (type == LogType.Exception || type == LogType.Error)
231+
if ((type == LogType.Exception || type == LogType.Error )
232+
&& (!string.IsNullOrEmpty(message) && !message.StartsWith("[Backtrace]::")))
232233
{
233-
var exception = new BacktraceUnhandledException(condition, stackTrace);
234+
var exception = new BacktraceUnhandledException(message, stackTrace);
234235
OnUnhandledApplicationException?.Invoke(exception);
235236
var report = new BacktraceReport(exception);
236237
Send(report);

0 commit comments

Comments
 (0)