Disable postgres log when executing raw sql queries

Is there a way to disable auto logging notices ? I have a script that truncates all my db each time a test suite is running and my console gets full of
console.log
{
severity_local: 'NOTICE',
severity: 'NOTICE',
code: '00000',
message: 'truncate cascades to table "shops_staff"',
file: 'tablecmds.c',
line: '1826',
routine: 'ExecuteTruncateGuts'
}

at NoticeResponse (../../node_modules/.pnpm/[email protected]/node_modules/postgres/cjs/src/connection.js:875:17)
console.log
{
severity_local: 'NOTICE',
severity: 'NOTICE',
code: '00000',
message: 'truncate cascades to table "shops_staff"',
file: 'tablecmds.c',
line: '1826',
routine: 'ExecuteTruncateGuts'
}

at NoticeResponse (../../node_modules/.pnpm/[email protected]/node_modules/postgres/cjs/src/connection.js:875:17)
when running my test suites... Is there a way to disable this ?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server