Skip to content

Commit

Permalink
fix(init): Fix missing Sentry logs for init errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xrutayisire committed Oct 16, 2023
1 parent f3f7a5d commit e7ab097
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/init/src/SliceMachineInitProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ export class SliceMachineInitProcess {
tryAgainCommand = `${tryAgainCommand} --repository=${this.context.repository.domain}`;
}

await this.trackError(error.shortMessage);
await this.trackError(error);
console.error(
`\n\n${error.shortMessage}\n${error.stderr}\n\n${
logSymbols.error
Expand Down
3 changes: 3 additions & 0 deletions packages/init/src/lib/setupSentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ export function setupSentry(): void {
environment: isStableVersion
? import.meta.env.MODE || "production"
: "alpha",
// Increase the default truncation length of 250 to 2500 (x10)
// to have enough details in Sentry
maxValueLength: 2_500,
});
}

0 comments on commit e7ab097

Please sign in to comment.