From b35c0b8a6f6373201cc9e252a8647935ad54ee19 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 3 Apr 2019 21:30:43 +0200 Subject: always write warnings and errors to log --- check-routeros-update | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'check-routeros-update') diff --git a/check-routeros-update b/check-routeros-update index ba420da..4d1cf8f 100644 --- a/check-routeros-update +++ b/check-routeros-update @@ -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") \ -- cgit v1.2.3-70-g09d2