-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Logger Syslog - empty line on output #14547
Comments
Thnx for reporting! I can confirm this under macOS |
@zordon13 thanks for reporting this. Sadly syslog tests are difficult so we did not find this earlier. The issue came from the I have moved the |
Resolved in #14548 |
Thank you @zordon13 |
Thank you for fast fix. Waiting release. |
The problem reappeared in the version 5.* (cphalcon-5.0.0beta2 for example) use Phalcon\Logger\Logger;
use Phalcon\Logger\Adapter\Syslog;
// Setting ident/mode/facility
$adapter = new Syslog(
'ident-name',
[
'option' => LOG_NDELAY,
'facility' => LOG_MAIL,
]
);
$logger = new Logger(
'messages',
[
'main' => $adapter,
]
);
$logger->error('Something went wrong');
for($i = 0; $i < 3; $i++) {
$logger->debug('Line: '.$i);
} янв 06 16:03:13 host ident-name[4617]: [2022-01-06T16:03:13+03:00][ERROR] Something went wrong
|
Describe the bug
One write one line to syslog logger, in journalctl have two line. Second line is empty.
To Reproduce
Steps to reproduce the behavior:
Two line in journalctl. Second is empty.
Expected behavior
Example 2
Screenshots
If applicable, add screenshots to help explain your problem.
Details
php --ri phalcon
)php -v
)source
Additional context
This behavior appeared in version 4.0.0-rc.3
The text was updated successfully, but these errors were encountered: