Skip to content

Commit

Permalink
Add console output for easier debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelblaszczyk5 committed Jan 4, 2024
1 parent 9fdb9fe commit 52b569d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion prisma/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ const deployPrismaMigrationsWithRetrying = () => {

const execute = async () => {
try {
await $`pnpm prisma migrate deploy`;
const { stdout } = await $`pnpm prisma migrate deploy`;

// eslint-disable-next-line no-console -- this is for debugging in deployment logs
console.log(stdout);
} catch (error) {
if (currentRetry >= MAX_RETRIES) throw error;

Expand Down

0 comments on commit 52b569d

Please sign in to comment.