]> git.ipfire.org Git - thirdparty/squid.git/commit
Improve config parsing of logformat definitions
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 7 Jun 2017 12:20:56 +0000 (00:20 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 7 Jun 2017 12:20:56 +0000 (00:20 +1200)
commit89d897e150e431e130d6e9710834b4e475411068
treec2b5f76a6a63e97d7c612503c2e55d50cafd26d9
parentffc36228e93309022881138f83ee757f4d122f6a
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