Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46406 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17402 invoked from network); 13 Dec 2009 17:18:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Dec 2009 17:18:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=jerome@loyet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jerome@loyet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain loyet.net from 209.85.223.195 cause and error) X-PHP-List-Original-Sender: jerome@loyet.net X-Host-Fingerprint: 209.85.223.195 mail-iw0-f195.google.com Received: from [209.85.223.195] ([209.85.223.195:43445] helo=mail-iw0-f195.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/51-09748-302252B4 for ; Sun, 13 Dec 2009 12:18:59 -0500 Received: by iwn33 with SMTP id 33so1503310iwn.29 for ; Sun, 13 Dec 2009 09:18:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.26.131 with SMTP id e3mr1626159ibc.0.1260724736665; Sun, 13 Dec 2009 09:18:56 -0800 (PST) In-Reply-To: <3bea96c40912130819h4cef09bam3f5499bd27ef2a38@mail.gmail.com> References: <3bea96c40912130819h4cef09bam3f5499bd27ef2a38@mail.gmail.com> Date: Sun, 13 Dec 2009 18:18:56 +0100 Message-ID: <3bea96c40912130918j3ba84a2eo7b51d3a41ccbd32b@mail.gmail.com> To: php-dev Cc: Antony Dovgal Content-Type: multipart/mixed; boundary=00151774177a16aca5047a9f5a05 Subject: Re: [PATCH] fpm/bug: handle custom log_level when not daemonized From: jerome@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=) --00151774177a16aca5047a9f5a05 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Le 13 d=E9cembre 2009 17:19, J=E9r=F4me Loyet a =E9crit = : > Hi tony, > > There is a small bug when fpm is not daemonized. In this case, the > log_level is not set and the default (notice) is used. When the > damonize option is used, it works well. > > The patch attached corrects it. With the correct version of the patch (.txt extension). > > Hope it helps > ++ Jerome > --00151774177a16aca5047a9f5a05 Content-Type: text/plain; name="php-fpm.log_level_no_daemon.patch.txt" Content-Disposition: attachment; filename="php-fpm.log_level_no_daemon.patch.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g362ya911 SW5kZXg6IHNhcGkvZnBtL2ZwbS9mcG1fc3RkaW8uYwo9PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBzYXBpL2ZwbS9m cG0vZnBtX3N0ZGlvLmMJKHLpdmlzaW9uIDI5MjA2NykKKysrIHNhcGkvZnBtL2ZwbS9mcG1fc3Rk aW8uYwkoY29waWUgZGUgdHJhdmFpbCkKQEAgLTQxLDYgKzQxLDcgQEAKIAogaW50IGZwbV9zdGRp b19pbml0X2ZpbmFsKCkgLyoge3t7ICovCiB7CisJemxvZ19zZXRfbGV2ZWwoZnBtX2dsb2JhbHMu bG9nX2xldmVsKTsKIAlpZiAoZnBtX2dsb2JhbF9jb25maWcuZGFlbW9uaXplKSB7CiAJCWlmIChm cG1fZ2xvYmFscy5lcnJvcl9sb2dfZmQgIT0gU1RERVJSX0ZJTEVOTykgewogCQkJLyogdGhlcmUg bWlnaHQgYmUgbWVzc2FnZXMgdG8gc3RkZXJyIGZyb20gbGliZXZlbnQsIHdlIG5lZWQgdG8gbG9n IHRoZW0gYWxsICovCkBAIC00OSw3ICs1MCw2IEBACiAJCQkJcmV0dXJuIC0xOwogCQkJfQogCQl9 Ci0JCXpsb2dfc2V0X2xldmVsKGZwbV9nbG9iYWxzLmxvZ19sZXZlbCk7CiAJCXpsb2dfc2V0X2Zk KGZwbV9nbG9iYWxzLmVycm9yX2xvZ19mZCk7CiAJfQogCXJldHVybiAwOwo= --00151774177a16aca5047a9f5a05--