We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c895718 commit 878f4e2Copy full SHA for 878f4e2
src/endpoints/metrics/metrics_directory.py
@@ -23,6 +23,11 @@ def register(
23
if name not in self.calculator_directory:
24
self.calculator_directory[name] = calculator
25
logger.debug(f"Registered calculator for metric: {name}")
26
+ else:
27
+ logger.warning(
28
+ f"Attempted to register duplicate calculator for metric: {name}. "
29
+ "Ignoring duplicate registration."
30
+ )
31
32
def get_calculator(
33
self, name: str
0 commit comments