Re: always log all URLs?

Juliusz Chroboczek <[email protected]>
Newsgroups gmane.comp.web.polipo.user
Message-ID <[email protected]>
> Why not:
>
>   #if defined(DEBUG_ENABLE)
>   #   define LOGGING_MAX (~0)
>   #else
>   #   define LOGGING_MAX 0xFF
>   #endif
>
> or something like that?

This is deliberately undocumented and somewhat difficult to enable,
since I'm worried that a distributor will enable it by default in their
binary package.  (You know, experience shows that not all distributors
are intelligent.)

You see, LOGGING_MAX is the mechanism that causes the logging instructions
that are not enabled to be compiled out -- in that way, the values that
are printed are not even evaluated.  Setting LOGGING_MAX to 0xFF causes
all of this code to be included, and Polipo's performance to be reduced.

> or:
>
>   #define D_CLIENT_REQ 0x80
>
> instead of 0x800?

Oh, that's another issue -- I don't want to make it easy for stupid
admins to spy on their users.

                                        Juliusz

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.