You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Will Glass-Husain <wg...@forio.com> on 2002/07/03 20:28:13 UTC

[PATCH] DefaultCookieParser.java

Hi,

I read in cookies in my Turbine app when a user logs in.  Every time this
happens, all the user cookies are displayed in turbine.log.  (priority
INFO).  This is driving me crazy-- it's really debug information and
shouldn't clutter up my log.

Therefore, I humbly submit the patch below changes "Log.info" to
"Log.debug".

I believe some code was being migrated to Fulcrum.  Was DefaultCookieParser
part of that?  If so, the patch should be applied to Fulcrum as well.

WILL



diff -u -r1.1.1.1 DefaultCookieParser.java
---
jakarta-turbine-2/src/java/org/apache/turbine/util/parser/DefaultCookieParse
r.java  16 Aug 2001 05:09:58 -0000      1.1.1.1
+++
jakarta-turbine-2/src/java/org/apache/turbine/util/parser/DefaultCookieParse
r.java  3 Jul 2002 18:23:57 -0000
@@ -153,13 +153,13 @@

         Cookie[] cookies = data.getRequest().getCookies();

-        Log.info ("Number of Cookies "+cookies.length);
+        Log.debug ("Number of Cookies "+cookies.length);

         for (int i=0; i<cookies.length; i++)
         {
             String name = convert (cookies[i].getName());
             String value = cookies[i].getValue();
-            Log.info ("Adding "+name+"="+value);
+            Log.debug ("Adding "+name+"="+value);
             add (name,value);
         }

_______________________________________
Forio Business Simulations
Will Glass-Husain
(415) 440-7500 phone
(415) 235-4293 mobile
wglass@forio.com
www.forio.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>