Skip to content

Commit

Permalink
Adiciona log de debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Phenome committed Mar 27, 2024
1 parent 745989e commit d541433
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ocorrencia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ const { data: iptSources } = (await Deno.readTextFile(
data: IptSource[]
}

console.debug('Connecting to MongoDB', Deno.env.get('MONGO_URI'))

const client = new MongoClient(Deno.env.get('MONGO_URI') as string)
await client.connect()
const iptsCol = client.db('dwc2json').collection<DbIpt>('ipts')
Expand Down

0 comments on commit d541433

Please sign in to comment.