mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-04 02:04:45 +02:00
global-functions: introduce $LogAndError
This commit is contained in:
parent
69352c90d5
commit
556fc2d0d3
1 changed files with 9 additions and 0 deletions
|
@ -37,6 +37,7 @@
|
|||
:global MailServerIsUp;
|
||||
:global TimeIsSync;
|
||||
:global WaitTimeSync;
|
||||
:global LogAndError;
|
||||
|
||||
# url encoding
|
||||
:set UrlEncode do={
|
||||
|
@ -488,3 +489,11 @@
|
|||
:delay 1s;
|
||||
}
|
||||
}
|
||||
|
||||
# log and error with same text
|
||||
:set LogAndError do={
|
||||
:local Message [ :tostr $1 ];
|
||||
|
||||
:log warn $Message;
|
||||
:error $Message;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue