Skip to content

Commit

Permalink
fix: Stack trace should not be camel case (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Danwakeem committed Mar 16, 2023
1 parent 002682f commit a046bdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion console-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const formatConsoleEvent = (activity) => {
} else if (activity.eventName === 'telemetry.warning.generated.v1') {
message = `WARNING • ${activity.tags.warning.message}`;
payload = { ...activity.tags.warning, customTags };
delete payload.stackTrace;
delete payload.stacktrace;
}

return {
Expand Down
4 changes: 2 additions & 2 deletions test/console-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ describe('Console UI', () => {
customTags: JSON.stringify(customTags),
tags: {
warning: {
stackTrace: 'stack trace',
stacktrace: 'stack trace',
message,
},
},
Expand All @@ -209,7 +209,7 @@ describe('Console UI', () => {
customTags: JSON.stringify(customTags),
tags: {
warning: {
stackTrace: 'stack trace',
stacktrace: 'stack trace',
message,
},
},
Expand Down

0 comments on commit a046bdb

Please sign in to comment.