Done, but modified slightly.  Thanks Kurt!

Daniel


"Kurt Grafius" <[EMAIL PROTECTED]> writes:

> Added conditional compilation flag for turning debug logging on/off.
> 
> Index: DataStreamParser.java
> ===================================================================
> RCS file:
> /repository/tools/jakarta-turbine/src/java/org/apache/turbine/util/DataStrea
> mParser.java,v
> retrieving revision 1.3
> diff -B -b -u -r1.3 DataStreamParser.java
> --- DataStreamParser.java 2001/06/21 14:49:24 1.3
> +++ DataStreamParser.java 2001/06/21 15:49:36
> @@ -113,6 +113,11 @@
>      private String          characterEncoding;
> 
>      /**
> +     * Compilation flag for turning debug logging on/off
> +     */
> +    private static final boolean DEBUG = false;
> +
> +    /**
>       * Create a new DataStreamParser instance. Requires a Reader to read
> the
>       * comma-separated values from, a list of column names and a
>       * character encoding.
> @@ -231,7 +236,11 @@
>              {
>                  String colname = it.next().toString();
>                  String colval  = tokenizer.sval;
> -                Log.debug(colname + "=" + colval);
> +                if(DEBUG)
> +                {
> +                    Log.debug(colname + "=" + colval +
> +                        " added to lineValues in
> DataStreamParser:nextRow()");
> +                }
>                  lineValues.add(colname, colval);
>              }
>              tokenizer.nextToken();
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to