Add debug output
authorTim Berners-Lee <timbl+hg@w3.org>
Thu, 27 Oct 2011 21:53:32 -0400
changeset 105 81d2fa82b753
parent 104 10f12bf8bbbd
child 106 0e01bf07ab68
Add debug output
src/main/scala/Resource.scala
--- a/src/main/scala/Resource.scala	Tue Oct 11 13:33:50 2011 +0200
+++ b/src/main/scala/Resource.scala	Thu Oct 27 21:53:32 2011 -0400
@@ -79,6 +79,8 @@
         // We remove any base URIs on same server different port as well, for proxying.
         def generalize(u:String) = u.replaceAll("//localhost[:0-9]*/", "//localhost[:0-9]*/");
         // fos.write(("# Resource.scala 80: "+generalize(baseBit(url.toString))+"\n").getBytes) 
+        logger.debug("@@ Munged output string with regexp: %s " format (generalize(baseBit(url.toString))));
+
         fos.write(temp.toString().replaceAll(generalize(baseBit(url.toString)), "").getBytes); // tbl
         
 //        writer.write(model, fos, url.toString)