Commit a74c0219 authored by michael.simon's avatar michael.simon
Browse files

change loglevel of some statements to trace

parent 3c32f803
......@@ -33,7 +33,9 @@ public class TemplateUrlConnection extends URLConnection {
templateService = (VelocityTemplateService) ic.lookup("global/bwreg/bwreg-service/VelocityTemplateServiceImpl!edu.kit.scc.webreg.service.tpl.VelocityTemplateService");
logger.debug("Looking up template for url {}", url);
if (logger.isTraceEnabled())
logger.trace("Looking up template for url {}", url);
tpl = templateService.findByName(url.getHost() + url.getPath());
connected = true;
} catch (NamingException e) {
......
......@@ -33,14 +33,16 @@ public class FaceletsResourceHandler extends ResourceHandlerWrapper {
Object o = FacesContext.getCurrentInstance().getExternalContext().getRequest();
if (o instanceof HttpServletRequest) {
HttpServletRequest request = (HttpServletRequest) o;
logger.debug("createViewResource called on hostname: {} with name {}", request.getLocalName(), name);
if (logger.isTraceEnabled())
logger.trace("createViewResource called on hostname: {} with name {}", request.getLocalName(), name);
TemplateBean tplBean = BeanHelper.findBean("templateBean");
if (tplBean.getTemplated().equalsIgnoreCase("true") &&
tplBean.isTemplated(request.getLocalName() + name)) {
try {
URL url = new URL("tpl://" + request.getLocalName() + name);
logger.debug("This ist a templated host and template exists! changing name to {}", url);
if (logger.isTraceEnabled())
logger.trace("This ist a templated host and template exists! changing name to {}", url);
resource = new ViewResource() {
@Override
public URL getURL() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment