aboutsummaryrefslogtreecommitdiffstats
path: root/check-routeros-update
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-02-26 12:09:19 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-02-26 12:09:19 +0100
commit3ebf68a08c94e23d742a37815caa3c55b6985806 (patch)
tree86ff5ab9d07d34e5794857b1f22caae220cc5f2f /check-routeros-update
parent6ef764c7d7dc855dc40313fbe79702d6949b7abb (diff)
global-functions: $LogAndError: add severity
Diffstat (limited to 'check-routeros-update')
-rw-r--r--check-routeros-update4
1 files changed, 2 insertions, 2 deletions
diff --git a/check-routeros-update b/check-routeros-update
index 7f14701..ff5bc38 100644
--- a/check-routeros-update
+++ b/check-routeros-update
@@ -25,7 +25,7 @@
:if ([ / system package print count-only where name="wireless" disabled=no ] > 0) do={
:if ([ / interface wireless cap get enabled ] = true && \
[ / caps-man manager get enabled ] = false) do={
- $LogAndError "System is managed by CAPsMAN, not checking.";
+ $LogAndError error "System is managed by CAPsMAN, not checking.";
}
}
@@ -37,7 +37,7 @@
:local Update [ / system package update get ];
:if ([ :len ($Update->"latest-version") ] = 0) do={
- $LogAndError "An empty string is not a valid version.";
+ $LogAndError warning "An empty string is not a valid version.";
}
:if ($Update->"installed-version" != $Update->"latest-version") do={