mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
The old load included the leading %. Stick with that behavior.
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ function process_syslog($entry, $update) {
|
||||
* %FACILITY-SUBFACILITY-SEVERITY-MNEMONIC: Message-text
|
||||
*/
|
||||
$matches = array();
|
||||
if(preg_match('/^%?(?<program>[A-Za-z\d\-_]+(:[A-Z]* %[A-Z\d\-_]+)?): ?(?<msg>.*)/', $entry['msg'], $matches)) {
|
||||
if(preg_match('/^(?<program>%?[A-Za-z\d\-_]+(:[A-Z]* %[A-Z\d\-_]+)?): ?(?<msg>.*)/', $entry['msg'], $matches)) {
|
||||
$entry['program'] = $matches['program'];
|
||||
$entry['msg'] = $matches['msg'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user