[PATCH] fpm/feature: show function and line in error_log only on debug

From: Date: Sun, 13 Dec 2009 16:39:10 +0000
Subject: [PATCH] fpm/feature: show function and line in error_log only on debug
Groups: php.internals 
Request: Send a blank email to internals+get-46405@lists.php.net to get a copy of this message
Hi tony, in the FPM error_log, the function and the line, from which the log function is called, are written to the error_log as show above: Dec 13 17:30:18.81042 [NOTICE] fpm_event_init_main(), line 87: libevent: using epoll It's debug information and it's not relevant but for developers. The attached patch change this behaviour showing function and line only when the log_level is set to debug. Moreover, it adds the PID of the process which call the log function but only in with a debug loglevel. Without debug: Dec 13 17:32:59.383706 [NOTICE] libevent: using epoll With debug: Dec 13 17:33:38.817841 [NOTICE] pid 7932, fpm_event_init_main(), line 87: libevent: using epoll Hope it helps ++ Jerome

« previous php.internals (#46405) next »