Skip to content

Commit

Permalink
Merge branch 'development' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
stenya committed Nov 13, 2023
2 parents b7af1ea + 6f552cd commit 58eded8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
12 changes: 10 additions & 2 deletions ui/src/components/DiagnosticLogs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,18 @@
<textarea readonly id="logsBlock" v-model="viewTextOther" />
</div>
<div v-if="activeTabName == 'userComment'" class="flexColumn">
<div style="margin-bottom: 5px">
Please write a description of the problem you are experiencing:
<div style="display: flex; margin-bottom: 5px">
<div style="flex-grow: 1">
Please write a description of the problem you are experiencing:
</div>
<div>
[ {{ 9000 - userComment.length }}
/ 9000 ]
</div>
</div>

<textarea
maxlength="9000"
id="commentBlock"
v-model="userComment"
v-bind:class="{
Expand Down
8 changes: 7 additions & 1 deletion ui/src/sentry/sentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,18 @@ export function SentrySendDiagnosticReport(
comment,
eventAdditionalDataObject,
daemonVer,
buildExtraInfo
buildExtraInfo,
) {
if (!DSN || comment == "" || eventAdditionalDataObject == null) return;

if (!daemonVer) daemonVer = "UNKNOWN";

if (comment.length > 400) {
eventAdditionalDataObject[" User comment (full)"] = comment;
comment =
comment.substr(0, 400) +
" ... \n\n<read full comment in 'ADDITIONAL DATA' section>";
}
// Sentry can not accept very long fields (>16KB)
// therefore, here we are dividing fields on smaller
const maxFieldSize = 16 * 1024;
Expand Down

0 comments on commit 58eded8

Please sign in to comment.