We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
onnotice: false
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The docs state:
onnotice : fn, // Default console.log, set false to silence NOTICE
However setting it to false did not silence the NOTICE logs for me, I had to to set to () => {}.
false
() => {}
import getPostgres from "postgres"; ... export const postgres = getPostgres({ database: config.database, host: config.databaseHost, port: config.databasePort, user: config.databaseUser, pass: config.databasePassword, onnotice: false, // did not work ? onnotice: () => {}, });
The typings are correct which do not allow a boolean value.
Apologies if I have misunderstood and this is not a bug.
Version 3.4.5.
The text was updated successfully, but these errors were encountered:
Came here to report this same issue. Setting onnotice to false as documented does not work, still appears to default to console.log.
console.log
Sorry, something went wrong.
No branches or pull requests
The docs state:
However setting it to
false
did not silence the NOTICE logs for me, I had to to set to() => {}
.The typings are correct which do not allow a boolean value.
Apologies if I have misunderstood and this is not a bug.
Version 3.4.5.
The text was updated successfully, but these errors were encountered: