You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The swoole server acknowledges a log entry as something else (a request I guess) and routes it to handleStream when the log entry is a valid JSON.
I don't know if there is any other better way to solve it, but when receiving a json before routing it to handleStream, adding a check for the required type key as well at least solves the issue for the format in Monolog\Formatter\JsonFormatter
It would still conflict with other logs that:
Are valid json
Contains the key type
Will send a PR in a few minutes, please take a look
Description:
The swoole server acknowledges a log entry as something else (a request I guess) and routes it to
handleStream
when the log entry is a valid JSON.I don't know if there is any other better way to solve it, but when receiving a json before routing it to
handleStream
, adding a check for the requiredtype
key as well at least solves the issue for the format in Monolog\Formatter\JsonFormatterIt would still conflict with other logs that:
type
Will send a PR in a few minutes, please take a look
Steps To Reproduce:
Create a laravel project and install octane
composer create-project --prefer-dist laravel/laravel laravel-octane cd laravel-octane composer require laravel/octane php artisan octane:install
Add a log entry to AppServiceProvider so we don't need to call a route or anything just for demonstration purposes:
Run octane (that will call the log when booting the application):
The text was updated successfully, but these errors were encountered: