suggestion: Way to disable notices
Opened this issue · 4 comments
DjDeveloperr commented
andreespirela commented
I agree. Logs should be totally optional, it is up to the developer to decide whether they want their stdout
to be altered by other packages.
al6x commented
+1 it breaks the logs and looks ugly
al6x commented
If anyone needs a quick fix
// Hiding notice warnings
import { parseNotice } from "postgres/connection/warning.ts"
import { Connection } from "postgres/connection/connection.ts"
(Connection.prototype as any).processNotice = function(msg: any): any {
return parseNotice(msg)
}
imjamesb commented
Any new quick fixes for disabling notices? Really annoying having them show up in my logs. The skipping notices are getting on my nerves to no end.