Skip to content

Commit 2beed27

Browse files
committed
More crash reporting progress.
1 parent 0839b2f commit 2beed27

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

BabbyJotz/Pages/SharePage.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public async void OnShareClicked(object sender, EventArgs args) {
2424
await DisplayAlert("Share Baby", "Invitation sent!", "Ok");
2525
await Navigation.PopAsync();
2626
} catch (Exception e) {
27+
RootViewModel.CloudStore.LogException("SharePage.OnShareClicked", e);
2728
await DisplayAlert("Share Baby", "Unable to send invite.", "Ok");
2829
}
2930
}

parse/cloud/logging.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,16 @@ util.declare("logSyncReport", {
4040

4141
return file.save().then(function() {
4242
var obj = new Parse.Object("SyncReport");
43+
obj.set(_.omit(request.params, 'report'));
44+
4345
var acl = new Parse.ACL();
4446
obj.setACL(acl);
47+
4548
if (request.user) {
4649
obj.set("user", request.user);
4750
}
51+
4852
obj.set("report", file);
49-
obj.set("platform", request.params.platform);
50-
obj.set("instance", request.params.instance);
5153
return obj.save();
5254

5355
}).then(function() {
@@ -72,15 +74,16 @@ util.declare("logException", {
7274

7375
return file.save().then(function() {
7476
var obj = new Parse.Object("Exception");
77+
obj.set(_.omit(request.params, 'exception'));
78+
7579
var acl = new Parse.ACL();
7680
obj.setACL(acl);
81+
7782
if (request.user) {
7883
obj.set("user", request.user);
7984
}
85+
8086
obj.set("exception", file);
81-
obj.set("platform", request.params.platform);
82-
obj.set("instance", request.params.instance);
83-
obj.set("tag", request.params.tag);
8487
return obj.save();
8588

8689
}).then(function() {

0 commit comments

Comments
 (0)