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

@ -16,7 +16,8 @@ $ScriptLock "collect-wireless-mac.capsman";
:local PlaceBefore [ / caps-man access-list find where comment="--- collected above ---" disabled ];
:if ([ :len $PlaceBefore ] = 0) do={
:error "Missing disabled access-list entry with comment '--- collected above ---'";
:log error "Missing disabled access-list entry with comment '--- collected above ---'";
:error "Error: See log for details.";
}
:foreach RegTbl in=[ / caps-man registration-table find ] do={