Skip to content

Commit

Permalink
slf4j conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
codeconsole committed Nov 11, 2024
1 parent e69b605 commit a37181f
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ protected View createGrailsView(String viewName) throws Exception {


private View createGroovyPageView(String gspView, ScriptSource scriptSource) {
if (LOG.isDebugEnabled()) {
LOG.debug("Resolved GSP view at URI [" + gspView + "]");
if (LOG.isLoggable(Level.FINE)) {
LOG.fine("Resolved GSP view at URI [" + gspView + "]");
}
GroovyPageView gspSpringView = new GroovyPageView();
gspSpringView.setServletContext(getServletContext());
Expand All @@ -218,8 +218,8 @@ private View createGroovyPageView(String gspView, ScriptSource scriptSource) {
gspSpringView.setScriptSource(scriptSource);
try {
gspSpringView.afterPropertiesSet();
if (LOG.isDebugEnabled()) {
LOG.debug("Initialized GSP view for URI [{}]", gspView);
if (LOG.isLoggable(Level.FINE)) {
LOG.fine(String.format("Initialized GSP view for URI [%s]", gspView));
}
} catch (Exception e) {
throw new RuntimeException("Error initializing GroovyPageView", e);
Expand All @@ -228,9 +228,9 @@ private View createGroovyPageView(String gspView, ScriptSource scriptSource) {
}

protected View createFallbackView(String viewName) throws Exception {
if(resolveJspView) {
if(LOG.isDebugEnabled()) {
LOG.debug("No GSP view found, falling back to locating JSTL view for name [{}]", viewName);
if (resolveJspView) {
if (LOG.isLoggable(Level.FINE)) {
LOG.fine(String.format("No GSP view found, falling back to locating JSTL view for name [%s]", viewName));
}
return createJstlView(viewName);
}
Expand Down

0 comments on commit a37181f

Please sign in to comment.