mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-01 05:34:28 +02:00
global-functions: $LogPrintExit2: handle empty name
This commit is contained in:
parent
e74bec7e5b
commit
f417bcbcd4
1 changed files with 1 additions and 1 deletions
|
@ -481,7 +481,7 @@
|
|||
:return ("\1B[" . $Color->$1 . "m" . $1 . "\1B[0m");
|
||||
}
|
||||
|
||||
:local Log ($Name . ": " . $Message);
|
||||
:local Log ([ $EitherOr $Name "<unknown>" ] . ": " . $Message);
|
||||
:if ($Severity ~ ("^(debug|error|info)\$")) do={
|
||||
:if ($Severity = "debug") do={ :log debug $Log; }
|
||||
:if ($Severity = "error") do={ :log error $Log; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue