disable migrate logs

I'm running the following script to run migrations:
import { DrizzleConfig } from 'drizzle-orm'
import { drizzle } from 'drizzle-orm/postgres-js'
import { migrate } from 'drizzle-orm/postgres-js/migrator'
import postgres from 'postgres'

export async function runMigrations(
postgresDbUrl: string,
config?: DrizzleConfig,
) {
const sql = postgres(postgresDbUrl, { max: 1 })
const db = drizzle(sql, config)
await migrate(db, { migrationsFolder: 'drizzle/migrations' })
await sql.end()
}
import { DrizzleConfig } from 'drizzle-orm'
import { drizzle } from 'drizzle-orm/postgres-js'
import { migrate } from 'drizzle-orm/postgres-js/migrator'
import postgres from 'postgres'

export async function runMigrations(
postgresDbUrl: string,
config?: DrizzleConfig,
) {
const sql = postgres(postgresDbUrl, { max: 1 })
const db = drizzle(sql, config)
await migrate(db, { migrationsFolder: 'drizzle/migrations' })
await sql.end()
}
Im having a lot of logs like this:
{
severity_local: 'NOTICE',
severity: 'NOTICE',
code: '42622',
message: 'identifier "intraday_breathing_rates_breathing_rate_id_breathing_rates_id_fk" will be truncated to
"intraday_breathing_rates_breathing_rate_id_breathing_rates_id_f"',
where: 'compilation of PL/pgSQL function "inline_code_block" near line 1',
file: 'scansup.c',
line: '99',
routine: 'truncate_identifier'
}
{
severity_local: 'NOTICE',
severity: 'NOTICE',
code: '42622',
message: 'identifier "intraday_breathing_rates_breathing_rate_id_breathing_rates_id_fk" will be truncated to
"intraday_breathing_rates_breathing_rate_id_breathing_rates_id_f"',
where: 'compilation of PL/pgSQL function "inline_code_block" near line 1',
file: 'scansup.c',
line: '99',
routine: 'truncate_identifier'
}
Can I disable the logs somehow?
2 Replies
Angelelz
Angelelz11mo ago
Those notices are coming from postgres Or postgres-js I should say Check here https://discord.com/channels/1043890932593987624/1144213507424923800
nicolastamalu
nicolastamaluOP11mo ago
thank you!
Want results from more Discord servers?
Add your server