mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-12-23 18:49:31 +00:00
global-functions: $LogPrintOnce: support exit
This commit is contained in:
parent
306269f919
commit
a7619a5119
3 changed files with 5 additions and 4 deletions
|
|
@ -681,6 +681,7 @@
|
|||
:local Severity [ :tostr $1 ];
|
||||
:local Name [ :tostr $2 ];
|
||||
:local Message [ :tostr $3 ];
|
||||
:local Exit [ :tostr $4 ];
|
||||
|
||||
:global LogPrintExit2;
|
||||
|
||||
|
|
@ -695,7 +696,7 @@
|
|||
}
|
||||
|
||||
:set ($LogPrintOnceMessages->$Message) 1;
|
||||
$LogPrintExit2 $Severity $Name $Message false;
|
||||
$LogPrintExit2 $Severity $Name $Message $Exit;
|
||||
}
|
||||
|
||||
# get max value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue