mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-29 20:54:28 +02:00
global-functions: $MailServerIsUp: decrease log severity to info
This commit is contained in:
parent
d519b70e65
commit
27b494b139
1 changed files with 2 additions and 2 deletions
|
@ -436,13 +436,13 @@
|
|||
:return true;
|
||||
} else={
|
||||
:if ($MailServer = "0.0.0.0") do={
|
||||
$LogPrintExit warning ("No mail server is configured! Returning gracefully...") false;
|
||||
$LogPrintExit info ("No mail server is configured! Returning gracefully...") false;
|
||||
:return true;
|
||||
}
|
||||
}
|
||||
|
||||
:if ([ :len [ / tool netwatch find where comment=$MailServer ] ] = 0) do={
|
||||
$LogPrintExit warning ("Adding netwatch entry for mail server.") false;
|
||||
$LogPrintExit info ("Adding netwatch entry for mail server.") false;
|
||||
:local MailHost $MailServer;
|
||||
:if ([ :typeof [ :toip $MailHost ] ] != "ip" ) do={
|
||||
:do {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue