aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-08 12:45:38 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 20:37:57 +0100
commitad65b62c1c0751fc3efee6221f4c32232f3302b9 (patch)
treeab5c8bb3bfbf929fde57b801555fcd0c2a8d3a87
parent030105cc2ed46623b4628496cbd5665da245b0c9 (diff)
ospf-to-leds: switch to $LogPrint
-rw-r--r--ospf-to-leds.rsc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ospf-to-leds.rsc b/ospf-to-leds.rsc
index 73c9922..a22e5a5 100644
--- a/ospf-to-leds.rsc
+++ b/ospf-to-leds.rsc
@@ -14,7 +14,7 @@
:do {
:local ScriptName [ :jobname ];
- :global LogPrintExit2;
+ :global LogPrint;
:global ParseKeyValueStore;
:global ScriptLock;
@@ -34,11 +34,11 @@
}
:if ($NeighborCount > 0 && $LEDType = "off") do={
- $LogPrintExit2 info $ScriptName ("OSPF instance " . $InstanceVal->"name" . " has " . $NeighborCount . " neighbors, led on!") false;
+ $LogPrint info $ScriptName ("OSPF instance " . $InstanceVal->"name" . " has " . $NeighborCount . " neighbors, led on!");
/system/leds/set type=on [ find where leds=$LED ];
}
:if ($NeighborCount = 0 && $LEDType = "on") do={
- $LogPrintExit2 info $ScriptName ("OSPF instance " . $InstanceVal->"name" . " has no neighbors, led off!") false;
+ $LogPrint info $ScriptName ("OSPF instance " . $InstanceVal->"name" . " has no neighbors, led off!");
/system/leds/set type=off [ find where leds=$LED ];
}
}