At Thu, 11 Dec 2003 17:19:45 +0200, Michael Stepanov wrote:
> Thank you very much, Angus. I've found a place where defined
> default debug mode. This is a patch to the file embperl.h:
>
> --- /home/misha/tmp/orig/Embperl-2.0b9/embperl.h 2003-02-15
> 22:46:31.000000000 +0200
> +++ /home/misha/tmp/Embperl-2.0b9/embperl.h 2003-12-11
> 16:05:05.000000000 +0200
> @@ -106,7 +106,7 @@
>
> enum dbg
> {
> - dbgStd = 1,
> + dbgStd = 0,
> dbgMem = 2,
> dbgEval = 4,
> dbgCmd = 8,
>
> When we rebuild Embperl again with this patch, debug mode will be ZERO.
> This is useful when Embperl is used in another modules:
Err, this only works because you've redefined what the default value
is set to (dbgStd) to 0, you haven't properly set the default value to
0 -- if that makes any sense. Basically, you are unable to set DEBUG
to dbgStd anymore, which is probably not good.
Try this patch instead:
--- epdefault.c.orig 2003-12-13 14:10:41.000000000 +1100
+++ epdefault.c 2003-12-13 14:13:32.000000000 +1100
@@ -43,7 +43,7 @@
#else
pCfg -> sLog = "/tmp/embperl.log" ;
#endif
- pCfg -> bDebug = dbgStd ;
+ pCfg -> bDebug = 0 ;
pCfg -> nMailErrorsResetTime = 60 ;
pCfg -> nMailErrorsResendTime = 60 * 15 ;
}
@@ -95,7 +95,7 @@
static void embperl_DefaultComponentConfig (/*in*/ tComponentConfig *pCfg)
{
- pCfg -> bDebug = dbgStd ;
+ pCfg -> bDebug = 0 ;
/* pCfg -> bOptions = optRawInput | optAllFormData ; */
pCfg -> nEscMode = escStd ;
pCfg -> bCacheKeyOptions = ckoptDefault ;
--
- Gus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]