Skip to content

Commit

Permalink
🔊 add logs also in production
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredkiss3 committed Jan 5, 2024
1 parent 740b893 commit aab8e97
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/models/issues/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ export async function searchIssues(
}
issueQuery = issueQuery.orderBy(orderBy);

if (process.env.NODE_ENV === "development") {
console.log({
sql: issueQuery.toSQL()
});
}
// if (process.env.NODE_ENV === "development") {
console.log({
filters,
sql: issueQuery.toSQL()
});
// }

const date = Date.now();
console.time(`\n[${date}] Select Issues`);
Expand Down

0 comments on commit aab8e97

Please sign in to comment.