Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 55436 invoked from network); 18 Sep 2005 01:05:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Sep 2005 01:05:00 -0000 Received: (qmail 15335 invoked by uid 500); 18 Sep 2005 01:04:59 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 14623 invoked by uid 500); 18 Sep 2005 01:04:57 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 14608 invoked by uid 99); 18 Sep 2005 01:04:57 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Sep 2005 18:04:56 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 9F9091C0 for ; Sun, 18 Sep 2005 03:04:54 +0200 (CEST) Message-ID: <609184848.1127005494651.JavaMail.jira@ajax.apache.org> Date: Sun, 18 Sep 2005 03:04:54 +0200 (CEST) From: "Joe Bohn (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-846) Log Level set on Console is overridden by serverlog properties setting even if the properties setting hasn't changed. In-Reply-To: <2091197305.1123088555612.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/GERONIMO-846?page=comments#action_12329660 ] Joe Bohn commented on GERONIMO-846: ----------------------------------- The fix for the jetty gbean problem is in GERONIMO-1006. The GBean problem was introduced after this fix was created by changing the Jetty GBean name. However, if you apply 1006 prior to this jira then you should get better results. > Log Level set on Console is overridden by serverlog properties setting even if the properties setting hasn't changed. > --------------------------------------------------------------------------------------------------------------------- > > Key: GERONIMO-846 > URL: http://issues.apache.org/jira/browse/GERONIMO-846 > Project: Geronimo > Type: Bug > Components: management, common > Versions: 1.0-M4 > Environment: Windows XP > Reporter: Joe Bohn > Assignee: Aaron Mulder > Fix For: 1.0-M5 > Attachments: logSettings.diff, logSettings.patch > > Each update action from the LogManagerPortlet invokes the appropriate 3 methods on the SystemLog without checking for actual changes in the submitted values. For the refresh interval this isn't a problem because Log4JService checks itself to ensure the period has changed before updating the value. For the logging level this also isn't a problem because there is no ill effect to updating the level with the exact same level. However, when setting the ConfigFileName the Log4JService doesn't check the value and assumes that there really is a new file and therefore sets the lastChanged value to -1 to ensure that the file values will take effect on the next timer refresh. The result is that any change (including only a change to the logging level) from the console also guarantees that the file settings will be refreshed. > I propose the following: > 1) Change the LogManagerPortlet to ensure that the name or level has changed before updating the SystemLog (Log4JService) ... I'd also ensure that we check for changes in the refresh period as well just for good measure. This way we won't was time setting things that haven't changed. > 2) Change the Log4JService to always check for an actual change to the level and/or the configPathName before taking any real action (just as it does for refresh interval today). This will clean things up so that another object invoking this service unnecessarily doesn't create a similar problem. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira