Question about debugging!

From: Mir Farooq Ali <mfali@dont-contact.us>
Date: Tue, 29 Dec 1998 00:42:32 -0500 (EST)

Hi! I enabled the debug_options in squid.conf with some specific
sections and levels, but squid seems to be logging at the highest level
for all the sections. The version is 2.1.PATCH2. In fact, I tried it also
with 1.1.22 and it gave the same results. I was wondering if this is the
correct debug behavior?

This is my debug_options line from squid.conf.

debug_options 11,1 ALL,0

and this is what is a snippet of what is being recorded in the cache.log
file. Note that at the time of the operation, there were no http clients
pointing to the cache, and the cache itself is empty.

...
1998/12/29 00:28:18| storeMaintainSwapSpace
1998/12/29 00:28:18| storeMaintainSwapSpace stats:
1998/12/29 00:28:18| 21 objects
1998/12/29 00:28:18| 21 were scanned
1998/12/29 00:28:18| 21 were locked
1998/12/29 00:28:18| 0 were expired
1998/12/29 00:28:19| comm_poll: 0 FDs ready
1998/12/29 00:28:20| comm_poll: 0 FDs ready
1998/12/29 00:28:20| comm_poll: time out: 914909300.
1998/12/29 00:28:20| eventRun: RUN ID 8216
1998/12/29 00:28:20| eventRun: Running 'MaintainSwapSpace', id 8215
1998/12/29 00:28:20| eventAdd: Adding 'MaintainSwapSpace', in 1.000000
seconds
1998/12/29 00:28:20| storeMaintainSwapSpace
1998/12/29 00:28:20| storeMaintainSwapSpace stats:
1998/12/29 00:28:20| 21 objects
1998/12/29 00:28:20| 21 were scanned
1998/12/29 00:28:20| 21 were locked
1998/12/29 00:28:20| 0 were expired
1998/12/29 00:28:21| comm_poll: 0 FDs ready
1998/12/29 00:28:21| comm_poll: time out: 914909301.
1998/12/29 00:28:21| eventRun: RUN ID 8217
1998/12/29 00:28:21| eventRun: Running 'MaintainSwapSpace', id 8216
1998/12/29 00:28:21| eventAdd: Adding 'MaintainSwapSpace', in 1.000000
seconds
...

I needed only the messages regarding HTTP to be recording, but squid seems
to be recording a bunch of stuff related to other operations as well.
This is making the size of the cache.log file unbearably large. Can
anybody please explain this, and tell me what needs to be correctly added
to the debug_options line for squid to record only stuff related to HTTP,
for example?

Thanks,

-Farooq.
Received on Mon Dec 28 1998 - 22:37:22 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:43:44 MST