Custom Logging: hide notice messages ?

Hi, I'm using Drizzle ORM with Postgres SQL.

Every time I start my project, it does a migration and logs things like this in my console:

{
  severity_local: 'NOTICE',
  severity: 'NOTICE',
  code: '42P07',
  message: 'relation "__drizzle_migrations" already exists, skipping',
  file: 'parse_utilcmd.c',
  line: '206',
  routine: 'transformCreateStmt'
}

I couldn't find a way to intercept these logs and handle them properly. Maybe it's not on Drizzle's side but on the Postgre Driver ?

Thanks ❤️
Was this page helpful?