mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-22 00:29:01 +00:00
Merge pull request #9497 from sun-jian:bugfix/dropwizard
* pr/9497: Fix metric check in case of duplicate metric
This commit is contained in:
+1
-1
@@ -148,7 +148,7 @@ public class DropwizardMetricServices implements CounterService, GaugeService {
|
||||
}
|
||||
catch (IllegalArgumentException ex) {
|
||||
Metric added = this.registry.getMetrics().get(name);
|
||||
registrar.checkExisting(metric);
|
||||
registrar.checkExisting(added);
|
||||
return (T) added;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user