1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-12-01 15:24:16 +01:00

Refactor.

This commit is contained in:
Jean Paul Galea 2015-09-10 20:24:23 +02:00
parent f71b81fe6b
commit a3421284e1

View File

@ -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);
} }
} }