diff --git a/packages/backend-tools/src/logger/ElasticSearchBackend.ts b/packages/backend-tools/src/logger/ElasticSearchBackend.ts index 03496779..7bfc7f30 100644 --- a/packages/backend-tools/src/logger/ElasticSearchBackend.ts +++ b/packages/backend-tools/src/logger/ElasticSearchBackend.ts @@ -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) }