Skip to content
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

Debug in some cases is not working - possible fix - line 29 in DebugHelper #809

Closed
tinodj opened this issue Jul 29, 2020 · 1 comment · Fixed by #819
Closed

Debug in some cases is not working - possible fix - line 29 in DebugHelper #809

tinodj opened this issue Jul 29, 2020 · 1 comment · Fixed by #819
Assignees
Milestone

Comments

@tinodj
Copy link

tinodj commented Jul 29, 2020

Hi, please change this:

define('STDOUT', fopen('php://stdout', 'w'));

to:
define('STDOUT', fopen('php://output', 'w'));

It makes things easier when using php-fpm. Output is logged directly on screen, while php://stdout is discarded by default configurations.

This is how php-fpm is configured by default:

; Redirect worker stdout and stderr into main error log. If not set, stdout and
; stderr will be redirected to /dev/null according to FastCGI specs.
; Note: on highloaded environement, this can cause some delay in the page
; process time (several ms).
; Default Value: no
;catch_workers_output = yes

so it sends everything to /dev/null.

However, for debugging purposes it is much better option writing to a file instead on output.

@lukebakken
Copy link
Collaborator

Please open a pull request with this change and provide a way for us to verify it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants