mirror of
https://github.com/Yubico/yubikey-val.git
synced 2024-12-01 15:24:16 +01:00
Refactor.
This commit is contained in:
parent
f71b81fe6b
commit
a3421284e1
@ -65,15 +65,15 @@ class Log
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$msg_fields = '';
|
$fields = '';
|
||||||
foreach ($this->fields as $field => $value) {
|
|
||||||
$msg_fields .= '[' . $value . '] ';
|
foreach ($this->fields as $val)
|
||||||
}
|
$fields .= "[$val] ";
|
||||||
|
|
||||||
syslog($priority,
|
syslog($priority,
|
||||||
$this->log_levels[$priority] . ':' .
|
$this->log_levels[$priority] . ':' .
|
||||||
$this->name . ':' .
|
$this->name . ':' .
|
||||||
$msg_fields .
|
$fields .
|
||||||
$message);
|
$message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user