Changeset 6104

Show
Ignore:
Timestamp:
11/13/06 14:06:35 (3 years ago)
Author:
jmorliaguet
Message:

- put the rendered theme in the log

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • NXThemes/NXThemesCore/trunk/src/org/nuxeo/theme/protocol/nxtheme/Connection.java

    r6000 r6104  
    2121import java.net.URLConnection; 
    2222 
     23import org.apache.commons.logging.Log; 
     24import org.apache.commons.logging.LogFactory; 
    2325import org.nuxeo.theme.Manager; 
    2426import org.nuxeo.theme.elements.Element; 
     
    2830 
    2931public final class Connection extends URLConnection { 
     32 
     33    private static final Log log = LogFactory.getLog(Connection.class); 
    3034 
    3135    private URL url; 
     
    6569        RenderingInfo info = new RenderingInfo(rendered, url); 
    6670        String content = renderer.render(info, cache).getMarkup(); 
     71        log.info("NXThemes output:\n" + content + "\n"); 
    6772        return new ByteArrayInputStream(content.getBytes()); 
    6873    }