always write warnings and errors to log

This commit is contained in:
Christian Hesse 2019-04-03 21:30:43 +02:00
parent 27b2fffaaf
commit b35c0b8a6f
10 changed files with 25 additions and 12 deletions

View file

@ -22,7 +22,8 @@
: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={
:error "System is managed by CAPsMAN, not checking.";
:log warning "System is managed by CAPsMAN, not checking.";
:error "Warning: See log for details.";
}
}
@ -64,8 +65,9 @@
}
:if ($SentRouterosUpdateNotification = $LatestVersion) do={
:error ("Already sent the RouterOS update notification for version " . \
:log info ("Already sent the RouterOS update notification for version " . \
$LatestVersion . ".");
:error "Already sent notification.";
}
$SendNotification ("RouterOS update notification") \