php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69061 mail.log = syslog contains double information
Submitted: 2015-02-16 15:34 UTC Modified: -
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: mail at tomsommer dot dk Assigned:
Status: Closed Package: *Mail Related
PHP Version: 5.6.5 OS:
Private report: No CVE-ID: None
 [2015-02-16 15:34 UTC] mail at tomsommer dot dk
Description:
------------
"mail.log = syslog" pushes the timestamp to syslog. This makes the timestamp come up twice in logs, as syslog adds its own timestamp.

https://github.com/php/php-src/blob/fc33f52d8c25997dd0711de3e07d0dc260a18c11/ext/standard/mail.c#L260

A custom syslog-correct format should be made for when mail.log is set to "syslog", as done with "error_log = syslog"


Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-16 15:49 UTC] mail at tomsommer dot dk
Pull request: https://github.com/php/php-src/pull/1087
 [2017-01-14 12:54 UTC] nikic@php.net
Automatic comment on behalf of tomsommer@users.noreply.github.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e77a1dbe409aa9f2a2910f1337c8b90786597f69
Log: Fix bug #69061
 [2017-01-14 12:54 UTC] nikic@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC