mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: drop $LogPrintExit2
This commit is contained in:
parent
009674b5bc
commit
36cf4d028b
|
@ -50,7 +50,6 @@
|
|||
:global IsMacLocallyAdministered;
|
||||
:global IsTimeSync;
|
||||
:global LogPrint;
|
||||
:global LogPrintExit2;
|
||||
:global LogPrintOnce;
|
||||
:global MAX;
|
||||
:global MIN;
|
||||
|
@ -744,27 +743,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
# log and print with same text, optionally exit
|
||||
# Deprectated! - TODO: remove later
|
||||
:set LogPrintExit2 do={
|
||||
:local Severity [ :tostr $1 ];
|
||||
:local Name [ :tostr $2 ];
|
||||
:local Message [ :tostr $3 ];
|
||||
:local Exit [ :tostr $4 ];
|
||||
|
||||
:global LogPrint;
|
||||
:global LogPrintOnce;
|
||||
|
||||
$LogPrintOnce warning $0 \
|
||||
("This function is deprecated and will be removed. Please make your adjustments!");
|
||||
|
||||
$LogPrint $1 $2 $3;
|
||||
|
||||
:if ($Exit = "true") do={
|
||||
:error ("Hard error to exit.");
|
||||
}
|
||||
}
|
||||
|
||||
# log and print, once until reboot
|
||||
:set LogPrintOnce do={
|
||||
:local Severity [ :tostr $1 ];
|
||||
|
|
Loading…
Reference in a new issue