<div dir="auto">Thanks Alex</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 7 Jul 2023, 15:40 Alex Rousskov, <<a href="mailto:rousskov@measurement-factory.com">rousskov@measurement-factory.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 7/7/23 09:50, robert k Wild wrote:<br>
<br>
> i think this is a new feature in squid as i never saw it in squid 4/5 <br>
<br>
It is, essentially, a bug fix: Depending on the Squid version, these <br>
lines were previously either logged to unlocked cache.log or not logged <br>
at all.<br>
<br>
<br>
> basically when you do<br>
> <br>
> /usr/local/squid/sbin/squid -k reconfigure<br>
> <br>
> you get back a blank line but now you get information regarding the <br>
> reconfigure which is a nice touch but how do you get rid of it, ie only <br>
> show back errors<br>
<br>
Unfortunately, Squid developers lack consensus regarding which lines <br>
should be logged at debug levels 0 and 1. Fortunately, you can now <br>
control many of these messages using cache_log_message directive:<br>
<br>
<a href="http://www.squid-cache.org/Doc/config/cache_log_message/" rel="noreferrer noreferrer" target="_blank">http://www.squid-cache.org/Doc/config/cache_log_message/</a><br>
<br>
For example, the following configuration will raise the level of the <br>
reconfiguration messages sampled below to 2:<br>
<br>
cache_log_message id=4 level=2<br>
cache_log_message id=68 level=2<br>
<br>
<br>
> 2023/07/07 09:43:54| Processing Configuration File: /usr/local/squid/etc/squid.conf (depth 0)<br>
> 2023/07/07 09:43:54| Processing Configuration File: /usr/local/squid/etc/squidrules.conf (depth 1)<br>
<br>
The above messages have ID 68.<br>
<br>
<br>
> 2023/07/07 09:43:54| Set Current Directory to /usr/local/squid/var/cache/squid<br>
<br>
The above message has ID 4.<br>
<br>
<br>
See doc/debug-messages.dox for message IDs. If the message you want to <br>
control is not covered, see <br>
<a href="https://wiki.squid-cache.org/SquidFaq/AboutSquid#how-to-add-a-new-squid-feature-enhance-of-fix-something" rel="noreferrer noreferrer" target="_blank">https://wiki.squid-cache.org/SquidFaq/AboutSquid#how-to-add-a-new-squid-feature-enhance-of-fix-something</a><br>
<br>
<br>
Please note that messages printed before Squid configuration is parsed <br>
for the very first time are not controlled by that configuration. We <br>
plan to address that limitation by accepting "early" configuration <br>
options from the command line, but I cannot give you an ETA for that <br>
feature delivery because the corresponding project is currently dormant.<br>
<br>
<br>
HTH,<br>
<br>
Alex.<br>
<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank" rel="noreferrer">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div>