You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Noel J. Bergman" <no...@devtech.com> on 2002/10/02 22:47:28 UTC

[PATCH] make DEBUG configurable

This is just a quick patch so that instead of

   private final boolean DEBUG = false;

we have:

   private boolean DEBUG = false;

and then

   public void init() ... {
      DEBUG = (getInitParameter("debug") == null) ? false : new
Boolean(getInitParameter("debug")).booleanValue();
   ...
   }

So any mailet that would emit additional log information when debugging can
be controlled by:

   <mailet ...>
      <debug>true | false</debug>
   </mailet>

This allows developers and admins to get additional debugging information
without having to recompile.

Please sanity check.  We don't want mistakes even in something this
seemingly simple.  :-)

	--- Noel