Return-Path: Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: (qmail 24918 invoked from network); 15 Sep 2010 09:54:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Sep 2010 09:54:24 -0000 Received: (qmail 15059 invoked by uid 500); 15 Sep 2010 09:54:24 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 14966 invoked by uid 500); 15 Sep 2010 09:54:22 -0000 Mailing-List: contact commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list commits@jackrabbit.apache.org Received: (qmail 14955 invoked by uid 99); 15 Sep 2010 09:54:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Sep 2010 09:54:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Sep 2010 09:54:20 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5969623888D2; Wed, 15 Sep 2010 09:54:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r997244 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java Date: Wed, 15 Sep 2010 09:54:00 -0000 To: commits@jackrabbit.apache.org From: thomasm@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100915095400.5969623888D2@eris.apache.org> Author: thomasm Date: Wed Sep 15 09:54:00 2010 New Revision: 997244 URL: http://svn.apache.org/viewvc?rev=997244&view=rev Log: JCR-2749 Closing a session twice shouldn't write a warning in the log Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java?rev=997244&r1=997243&r2=997244&view=diff ============================================================================== --- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java (original) +++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java Wed Sep 15 09:54:00 2010 @@ -220,9 +220,11 @@ public class SessionState { "Stack trace of where " + context + " was closed"); return true; } else { - log.warn("This session has already been closed. See the" - + " chained exception for a trace of where the " + log.debug("This session has already been closed. See the" + + " exception for a trace of where the " + " session was closed.", closed); + log.debug("And additionally at", + new Exception("Stack trace of where " + context + " was also closed")); return false; } } finally {