mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
netwatch-notify: log to debug...
... instead of discarding the message completely.
This commit is contained in:
@ -116,8 +116,9 @@
|
|||||||
}
|
}
|
||||||
} on-error={
|
} on-error={
|
||||||
:set ($Metric->"resolve-failcnt") ($Metric->"resolve-failcnt" + 1);
|
:set ($Metric->"resolve-failcnt") ($Metric->"resolve-failcnt" + 1);
|
||||||
:if ($Metric->"resolve-failcnt" = 3 && $HostInfo->"no-resolve-fail" != true) do={
|
:if ($Metric->"resolve-failcnt" = 3) do={
|
||||||
$LogPrint warning $ScriptName ("Resolving name '" . $HostInfo->"resolve" . [ $IfThenElse \
|
$LogPrint [ $IfThenElse ($HostInfo->"no-resolve-fail" != true) warning debug ] \
|
||||||
|
$ScriptName ("Resolving name '" . $HostInfo->"resolve" . [ $IfThenElse \
|
||||||
($HostInfo->"resolve" != $HostInfo->"name") ("' for " . $Type . " '" . \
|
($HostInfo->"resolve" != $HostInfo->"name") ("' for " . $Type . " '" . \
|
||||||
$HostInfo->"name") "" ] . "' failed.");
|
$HostInfo->"name") "" ] . "' failed.");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user