diff --git a/src/configs/measurement.json b/src/configs/measurement.json index c061ae9..5c45d96 100644 --- a/src/configs/measurement.json +++ b/src/configs/measurement.json @@ -91,6 +91,13 @@ ], "description": "Defines the position of the measurement relative to its parent equipment or system." } + }, + "distance":{ + "default": null, + "rules": { + "type": "number", + "description": "Defines the position of the measurement relative to its parent equipment or system." + } } }, "asset": { diff --git a/src/measurements/MeasurementContainer.js b/src/measurements/MeasurementContainer.js index 8e4632b..b7dc405 100644 --- a/src/measurements/MeasurementContainer.js +++ b/src/measurements/MeasurementContainer.js @@ -444,6 +444,7 @@ class MeasurementContainer { if (positionValue > 0) { return "downstream"; } + if (this.logger) { this.logger.error(`Invalid position provided: ${positionValue}`); }