Chore: Remove 'PerformanceBackend: flushing' log (#67915)

Remove 'PerformanceBackend: flushing' log
This commit is contained in:
Josh Hunt 2023-05-05 13:46:53 +00:00 committed by GitHub
parent 4abc56c583
commit 29e4df6a33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,11 +32,6 @@ export class PerformanceBackend implements EchoBackend<PerformanceEvent, Perform
return;
}
// Currently we don't have an API for sending the metrics hence logging to console in dev environment
if (process.env.NODE_ENV === 'development') {
console.log('PerformanceBackend flushing:', this.buffer);
}
backendSrv.post('/api/frontend-metrics', {
events: this.buffer,
});