Skip to content

Commit a330d21

Browse files
authored
Merge pull request #135 from dduponchel/uds-prod
Fix stat clients in tests
2 parents 4363976 + 8c81d0e commit a330d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/StatsClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class StatsClient {
5353
this.metrics = new Map();
5454
this.logger = logger;
5555
this.client = new StatsD({
56-
protocol: 'uds',
56+
protocol: process.env.NODE_ENV === 'production' ? 'uds' : undefined,
5757
});
5858

5959
if (!this.interval) {

0 commit comments

Comments
 (0)