On Sun, 5 Aug 2001, Krasi Zlatev wrote:
> I always get ctx: enter level 0: and ctx: exit level 0 in cache log,
>
> I have added in http.c debug (11, 1) (........);
>
> looking in debug.c:
> while (Ctx_Reported_Level < Ctx_Current_Level) {
> .....
>
> How to prevent this message to appear in cache.log, but I need my debug
> meesage to be with level 1.
IIRC, context (ctx) levels are not related to debugging levels. Ctx
level shows the depth of nested "set ctx" calls. Ctx messages are
useful when you want to know what URL (or other context) a piece of
code deep-down-the-processing-tree is working on when (nd only when)
that code displays a debugging message. See comments in debug.c for
more info.
If you do not want to see ctx output, you can comment out the
statements that print it or change the initial value of the reported
level variable (Ctx_Reported_Level) to something really big, say,
1024.
HTH,
Alex.
Received on Sun Aug 05 2001 - 13:32:15 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:09 MST