Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Jul 16, 2024
1 parent ca8ce55 commit 181000c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/logging/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ export class CustomOceanNodesTransport extends Transport {
try {
// Use the insertLog method of the LogDatabase instance
if (this.dbInstance && this.dbInstance.logs) {
console.log('will insert LOG ON DB: ', document.message)
// double check before writing
await this.dbInstance.logs.insertLog(document)
}
} else console.log('will not insert LOG on DB: ', document.message)
} catch (error) {
// Handle the error according to your needs
console.error('Error writing to Typesense:', error)
Expand Down

0 comments on commit 181000c

Please sign in to comment.