Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
[L2B-4977] Clear buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
maciekop-l2b committed Apr 24, 2024
1 parent 19257a2 commit d8a975a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend-tools/src/logger/ElasticSearchBackend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export class ElasticSearchBackend implements LoggerBackend {
if (bulkResponse.errors) {
throw new Error('Failed to push liogs to Elastic Search node')
}

this.buffer.splice(0)
} catch (error) {
console.log(error)
}
Expand Down

0 comments on commit d8a975a

Please sign in to comment.