chore: gitignore瘦身154->21行 + migrate onnotice改logger.debug
gitignore: 删社区模板倒灌的死分支 (bower/jspm/snowpack/parcel/fusebox /dynamodb/firebase/yarn-v3/sveltekit/vuepress/docusaurus/gatsby/next /nuxt/grunt/eslintcache 等),只留实际命中的 ~20 行。KISS。 migrate: onnotice 从空函数改成 logger.debug,消除最后一处 silent black hole。pg NOTICE 现在会出现在 LOG_LEVEL=debug 下。
This commit is contained in:
+7
-1
@@ -23,7 +23,13 @@ export default defineCommand({
|
||||
|
||||
const sha256 = (s: string) => Bun.CryptoHasher.hash('sha256', s, 'hex')
|
||||
|
||||
const db = drizzle({ connection: { url: env.DATABASE_URL, max: 1, onnotice: () => {} } })
|
||||
const db = drizzle({
|
||||
connection: {
|
||||
url: env.DATABASE_URL,
|
||||
max: 1,
|
||||
onnotice: (n) => logger.debug('pg notice', { notice: n.message }),
|
||||
},
|
||||
})
|
||||
try {
|
||||
await db.execute(sql`CREATE SCHEMA IF NOT EXISTS "drizzle"`)
|
||||
await db.execute(sql`
|
||||
|
||||
Reference in New Issue
Block a user