clickstream/src/com/opensymphony/clickstream/logger SimpleClickstreamLogger.java,1.3,1.4

[email protected]
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
Update of /cvsroot/opensymphony/clickstream/src/com/opensymphony/clickstream/logger
In directory sc8-pr-cvs1:/tmp/cvs-serv25330/clickstream/src/com/opensymphony/clickstream/logger

Modified Files:
	SimpleClickstreamLogger.java 
Log Message:
Don't print newline if last request is reached.

Index: SimpleClickstreamLogger.java
===================================================================
RCS file: /cvsroot/opensymphony/clickstream/src/com/opensymphony/clickstream/logger/SimpleClickstreamLogger.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- SimpleClickstreamLogger.java	2 Sep 2003 10:17:45 -0000	1.3
+++ SimpleClickstreamLogger.java	2 Sep 2003 10:23:15 -0000	1.4
@@ -47,7 +47,7 @@
         for (Iterator iterator = clickstream.getStream().iterator(); iterator.hasNext();) {
             ClickstreamRequest request = (ClickstreamRequest) iterator.next();
             count++;
-            output.append(count + ": " + request + "\n");
+            output.append(count + ": " + request + (iterator.hasNext() ? "\n" : ""));
         }
 
         log.info(output);




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.