Minor bug fix and change in report level when encountering invalid children
This commit is contained in:
@@ -132,7 +132,7 @@ class Reactor {
|
||||
|
||||
_connectMeasurement(measurementChild) {
|
||||
if (!measurementChild) {
|
||||
this.logger.warn("Invalid measurement provided.");
|
||||
this.logger.error("Invalid measurement provided.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ class Reactor {
|
||||
|
||||
_connectReactor(reactorChild) {
|
||||
if (!reactorChild) {
|
||||
this.logger.warn("Invalid reactor provided.");
|
||||
this.logger.error("Invalid reactor provided.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -182,11 +182,12 @@ class Reactor {
|
||||
|
||||
_connectRotatingMachine(rotatingMachineChild) {
|
||||
if (!rotatingMachineChild) {
|
||||
this.logger.warn("Invalid rotating machine provided.");
|
||||
this.logger.error("Invalid rotating machine provided.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (rotatingMachineChild.config.functionality.positionVsParent == "downstream") {
|
||||
rotatingMachineChild.upstreamReactor = this;
|
||||
this.returnPump = rotatingMachineChild;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user