click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Rybin (JIRA)" <j...@apache.org>
Subject [jira] Created: (CLK-623) MockContext tightly coupled with ConsoleLogService
Date Sat, 06 Feb 2010 13:30:28 GMT
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
            Reporter: Andrey Rybin


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.


Mime
View raw message