[squid-users] Logging in Squid external helpers in Docker?

Amos Jeffries squid3 at treenet.co.nz
Tue Dec 28 06:18:06 UTC 2021


On 28/12/21 19:01, roee klinger wrote:
>     stdout of the helper is the channel to respond to Squid requests. Do not
>     send other information there.
> 
> 
>     Helper debug info etc should go to the helper stderr which Squid will
>     deliver to cache.log.
> 
> 
> Thank you, Amos.
> 
> I am glad there is a built-in way to handle this.
> 
> However, I tried putting this inside the script:
> 
>     sys.stderr.write("test
>     ################################################")
> 
> 
> However, I still can not see the info in the cache log, these are my 
> configurations:
> 
>     cache_log stdio:/dev/stdout
>     cache_store_log stdio:/dev/stdout
> 

NP: make sure you have log rotation set to 0 when doing this.


> 
> I even tried adding this, but still no luck:
> 
>     debug_options 82,9
> 
> 
> I can see the rest of the cache log just fine, and stdout makes it to 
> its destination just fine as well.
> 
> Any idea what is wrong?
> 

Not for certain, works fine for me.

I/O behaviours like default buffering have caused issues with some 
helper implementation languages. So that is where I would be looking now 
to find out.

Amos


More information about the squid-users mailing list