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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user