Bug #76234 [Fbk->NoF]: bad log filtering with 'log_level' in php-fpm.conf

From: Date: Sun, 18 Nov 2018 22:41:54 +0000
Subject: Bug #76234 [Fbk->NoF]: bad log filtering with 'log_level' in php-fpm.conf
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218028@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76234&edit=1

 ID:                 76234
 Updated by:         cmb@php.net
 Reported by:        aguytech at free dot fr
 Summary:            bad log filtering with 'log_level' in php-fpm.conf
-Status:             Feedback
+Status:             No Feedback
 Type:               Bug
 Package:            FPM related
 Operating System:   debian9 stretch
 PHP Version:        7.0.29
 Assigned To:        bukka
 Block user comment: N
 Private report:     N

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2018-10-28 17:54:01] bukka@php.net

What's the full fpm configuration. To get those warnings, you also need 

catch_workers_output = on

------------------------------------------------------------------------
[2018-04-18 11:26:18] aguytech at free dot fr

Description:
------------
Debian9 stretch
PHP 7.0.27-0+deb9u1 (cli) (built: Jan  5 2018 13:51:52) ( NTS )
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
rsyslogd 8.24.0,

When I change the parameter 'log_level' in php-fpm  configuration file :
'php-fpm.conf' from notice to something else PHP no returns error in PHP-FPM logs.

apache error log ok
error in screen ok with 'display_errors = On' in 'php.ini'


Test script:
---------------
'php-fpm.conf':
log_level = warning # or error ...

'test.php':
<?php
toto( );



Expected result:
----------------
Apr 18 13:18:52 debian9-php php7.0-fpm[2171]: [WARNING] [pool fpm-www] child 2172 said into stderr:
"NOTICE: PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function treu() in
/var/www/localhost/public_html/test.php:10"
Apr 18 13:18:52 debian9-php php7.0-fpm[2171]: [WARNING] [pool fpm-www] child 2172 said into stderr:
"Stack trace:"
Apr 18 13:18:52 debian9-php php7.0-fpm[2171]: [WARNING] [pool fpm-www] child 2172 said into stderr:
"#0 {main}"
Apr 18 13:18:52 debian9-php php7.0-fpm[2171]: [WARNING] [pool fpm-www] child 2172 said into stderr:
"  thrown in /var/www/localhost/public_html/test.php on line 10"


Actual result:
--------------
Nothing returned


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=76234&edit=1


Thread (3 messages)

« previous php.bugs (#218028) next »