logger : remove the \n in syslog as they are written as #012

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5477 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-09-13 09:45:27 +00:00
parent a01d704e85
commit ecfe70bcdc

View File

@@ -297,6 +297,8 @@ class logger
} }
} }
openlog ($this->syslogPrefix, NULL, $this->syslogFacility); openlog ($this->syslogPrefix, NULL, $this->syslogFacility);
// Syslog display a #012 when there is a \n : remove it
$message = str_replace ("\n", "", $message);
syslog ($priority, $message); syslog ($priority, $message);
} }