Skip to content

Commit

Permalink
[BUGFIX] Corriger le warning MaxListenersExceededWarning lors de l'…
Browse files Browse the repository at this point in the history
…exécution des tests

 #11555
  • Loading branch information
pix-service-auto-merge authored Mar 4, 2025
2 parents e011ba4 + fec2e27 commit 375db68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/monitoring/infrastructure/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class Metrics {
constructor({ config }) {
if (!config.featureToggles.isDirectMetricsEnabled) {
logger.info('Metric initialisation : no reporter => no metrics sent');
metrics.init({ reporter: new metrics.reporters.NullReporter() });
metrics.init({ reporter: new metrics.reporters.NullReporter(), flushIntervalSeconds: 0 });
}

if (config.featureToggles.isDirectMetricsEnabled) {
Expand Down

0 comments on commit 375db68

Please sign in to comment.