]> git.ipfire.org Git - thirdparty/squid.git/commit
Improve config parsing of logformat definitions
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 19 Jun 2017 10:31:04 +0000 (22:31 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 19 Jun 2017 10:31:04 +0000 (22:31 +1200)
commit9d63df880fb1da85f8b17cefde5da4ef2a794555
treea0fe68e39390ac2b73e8f494dcd9f07ef60b9df1
parent96dd773c9e734c556b6aed207051d763a1471bf1
Improve config parsing of logformat definitions

Squid has for some time ignored custom definitions using the same name
as internally defined formats. And overwritten custom formats when there
was a repeated definition.

* Detect logformat duplicates and produce ERROR message indicating the
  format name, config line and action taken.

* Add some missing FATAL labels on parse abort when access_log has
  multiple logformat= options configured.

* Add missing FATAL error message when logformat lines has no name
  parameter (and thus no tokens either).

* Omit the default "logformat=squid" option from cachemgr config dumps.
src/cache_cf.cc
src/log/Config.cc