diff --git a/app/api/companies/process/route.ts b/app/api/companies/process/route.ts index 7ab9312..16ec290 100644 --- a/app/api/companies/process/route.ts +++ b/app/api/companies/process/route.ts @@ -29,8 +29,6 @@ export const GET = async () => { } try { - console.log('Processing companies and fetching jobs') - logger.info('Processing companies and fetching jobs') const companies = await querySelectAllCompanies() diff --git a/bun.lockb b/bun.lockb index e785d26..b15b27d 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/lib/logger.ts b/lib/logger.ts index 65ffcab..b32fdaa 100644 --- a/lib/logger.ts +++ b/lib/logger.ts @@ -1,17 +1,8 @@ -import '@axiomhq/pino' import { type TransportTargetOptions, pino } from 'pino' const targets: TransportTargetOptions[] = [] -if (process.env.NODE_ENV === 'production') { - targets.push({ - target: '@axiomhq/pino', - options: { - dataset: process.env.AXIOM_DATASET, - token: process.env.AXIOM_API_TOKEN, - }, - }) -} else { +if (process.env.NODE_ENV !== 'production') { targets.push({ target: 'pino-pretty', options: { diff --git a/package.json b/package.json index 007411d..cceaf66 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "prepare": "husky" }, "dependencies": { - "@axiomhq/pino": "^1.0.0-rc.4", "@clerk/nextjs": "^5.1.4", "@hookform/resolvers": "^3.4.2", "@neondatabase/serverless": "^0.9.3",