Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C58A9909 for ; Thu, 13 Oct 2011 15:54:10 +0000 (UTC) Received: (qmail 69823 invoked by uid 500); 13 Oct 2011 15:54:09 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 69783 invoked by uid 500); 13 Oct 2011 15:54:09 -0000 Mailing-List: contact dev-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 dev@jackrabbit.apache.org Received: (qmail 69776 invoked by uid 99); 13 Oct 2011 15:54:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Oct 2011 15:54:09 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stefan.guggisberg@gmail.com designates 209.85.213.42 as permitted sender) Received: from [209.85.213.42] (HELO mail-yw0-f42.google.com) (209.85.213.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Oct 2011 15:54:04 +0000 Received: by ywa8 with SMTP id 8so2485952ywa.1 for ; Thu, 13 Oct 2011 08:53:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=tSjfX43zCGzRqDzaE55jrTmoE+Wg+03z4/bdUNHrPi0=; b=D2ToFYganU0jlosVwQPzqRqdi7UUxnFl/fwIZpNidBUKpBj8IHqIHwKw429QSopH+P atAYAo2ymERCe51lZmuQneE61Q7gSWQIFGLPj1O1m0keebY4KeKVu2OYcFlznA1mpJyZ YJJshv4xX0rOkdeZnmvntWflCe6pyWOCzbHeI= MIME-Version: 1.0 Received: by 10.42.244.137 with SMTP id lq9mr8362109icb.28.1318521223987; Thu, 13 Oct 2011 08:53:43 -0700 (PDT) Received: by 10.42.138.194 with HTTP; Thu, 13 Oct 2011 08:53:43 -0700 (PDT) In-Reply-To: References: <20111013131939.176CC23889E3@eris.apache.org> Date: Thu, 13 Oct 2011 17:53:43 +0200 Message-ID: Subject: Re: svn commit: r1182835 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core: cache/AbstractCache.java cache/CacheManager.java persistence/bundle/AbstractBundlePersistenceManager.java From: Stefan Guggisberg To: dev@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Oct 13, 2011 at 5:23 PM, Bart van der Schans wrote: > On Thu, Oct 13, 2011 at 4:51 PM, Stefan Guggisberg > wrote: >> hi bart, >> >> On Thu, Oct 13, 2011 at 4:44 PM, Bart van der Schans >> wrote: >>> Hi Stefan, >>> >>> On Thu, Oct 13, 2011 at 4:27 PM, Stefan Guggisberg >>> wrote: >>>>> - =A0 =A0 =A0 =A0if (log.isDebugEnabled()) { >>>>> + =A0 =A0 =A0 =A0if (log.isInfoEnabled()) { >>>> >>>> what's the justification for changing the log level from debug to info= ? >>> >>> This is to make a distinction between the debug logging of the cache >>> resizing which logs quite a bit of info every second and the logging >>> of the cache (access/hit/miss) stats which log every minute >>> (configurable). It's comparable to the logging of the stats of the >>> bundle cache in 1.x which was also set on info. >> >> thanks for the explanation. i'd prefer to stick to the debug log level >> for this kind of polled, i.e. repeating status information. the info >> log level is >> imo fine for logging single status change events (e.g. 'repository start= ed') > > In general I agree. In this particular case, how can we log the stats > on debug without flooding the logs with the debug output from the > resizeAll() method? ok, i get your point. > Can we use TRACE log level for the resizing > logging? i guess yes, that's a good idea. cheers stefan > Or is there some configuration trick in the logging (log4j) > config that I'm missing that can be used to achieve that? I guess this > "problem" will solve itself once we get the JMX bindings in place. > > Regards, > Bart > >> >> cheers >> stefan >> >>> >>> Regards, >>> Bart >