Return-Path: Delivered-To: apmail-click-dev-archive@www.apache.org Received: (qmail 68669 invoked from network); 6 Feb 2010 15:42:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Feb 2010 15:42:51 -0000 Received: (qmail 57540 invoked by uid 500); 6 Feb 2010 15:42:51 -0000 Delivered-To: apmail-click-dev-archive@click.apache.org Received: (qmail 57525 invoked by uid 500); 6 Feb 2010 15:42:51 -0000 Mailing-List: contact dev-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@click.apache.org Delivered-To: mailing list dev@click.apache.org Received: (qmail 57517 invoked by uid 99); 6 Feb 2010 15:42:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Feb 2010 15:42:51 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Feb 2010 15:42:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CC9A5234C4A9 for ; Sat, 6 Feb 2010 07:42:28 -0800 (PST) Message-ID: <1453417221.97881265470948836.JavaMail.jira@brutus.apache.org> Date: Sat, 6 Feb 2010 15:42:28 +0000 (UTC) From: "Bob Schellink (JIRA)" To: dev@click.apache.org Subject: [jira] Updated: (CLK-623) MockContext tightly coupled with ConsoleLogService In-Reply-To: <1754452078.97601265463028286.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CLK-623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bob Schellink updated CLK-623: ------------------------------ Affects Version/s: (was: 2.1.0) 2.1.0 RC1 Fix Version/s: 2.1.0 Assignee: Bob Schellink > MockContext tightly coupled with ConsoleLogService > --------------------------------------------------- > > Key: CLK-623 > URL: https://issues.apache.org/jira/browse/CLK-623 > Project: Click > Issue Type: Bug > Components: mock > Affects Versions: 2.1.0 RC1 > Reporter: Andrey Rybin > Assignee: Bob Schellink > Fix For: 2.1.0 > > > in MockContext initContext(MockServletConfig servletConfig, > MockRequest request, MockResponse response, ClickServlet clickServlet, > ActionEventDispatcher controlRegistry) { > ConsoleLogService logService = (ConsoleLogService) ClickUtils.getLogService(); > logService.setLevel(ConsoleLogService.TRACE_LEVEL); > should be > if (ClickUtils.getLogService() instanceof ConsoleLogService) { > ConsoleLogService logService = (ConsoleLogService) ClickUtils.getLogService(); > logService.setLevel(ConsoleLogService.TRACE_LEVEL); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.