aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-04-03 17:19:34 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-04-03 17:19:34 +0200
commitee903e263f0c82927dea4db8aa7cdc846d0be961 (patch)
treea9b8cdd296fd5f868780d5530b918a614fda94a5
parentd2b1f036ca79cfc8da0b27ff7037418bb5862d08 (diff)
check-lte-firmware-upgrade: use $LogPrintExit
-rw-r--r--check-lte-firmware-upgrade9
1 files changed, 5 insertions, 4 deletions
diff --git a/check-lte-firmware-upgrade b/check-lte-firmware-upgrade
index 6edb6f1..4b0e749 100644
--- a/check-lte-firmware-upgrade
+++ b/check-lte-firmware-upgrade
@@ -8,6 +8,7 @@
:global Identity;
:global SentLteFirmwareUpgradeNotification;
+:global LogPrintExit;
:global SendNotification;
:foreach Interface in=[ / interface lte find ] do={
@@ -16,8 +17,8 @@
:local Firmware [ / interface lte firmware-upgrade $Interface once as-value ];
:if ($SentLteFirmwareUpgradeNotification = ($Firmware->"latest")) do={
- :log debug ("Already sent the LTE firmware upgrade notification for version " . \
- ($Firmware->"latest") . ".");
+ $LogPrintExit debug ("Already sent the LTE firmware upgrade notification for version " . \
+ ($Firmware->"latest") . ".") false;
} else={
:if (($Firmware->"installed") != ($Firmware->"latest")) do={
$SendNotification ("LTE firmware upgrade") \
@@ -27,7 +28,7 @@
}
}
} on-error={
- :log debug ("Could not get latest LTE firmware version for interface " . \
- $IntName . ".");
+ $LogPrintExit debug ("Could not get latest LTE firmware version for interface " . \
+ $IntName . ".") false;
}
}