]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 5194: Remove all unused debug sections (#969)
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 28 Jan 2022 12:05:43 +0000 (12:05 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 28 Jan 2022 15:19:54 +0000 (15:19 +0000)
commit6d60a7aca85da3245167ddf0a15c6611249bbec6
treeb73a5c9546440cf6dd1ee63ff9d7717a580f7533
parenta8c7a1107de9d9365dfe10749821f74aeedac777
Bug 5194: Remove all unused debug sections (#969)

... that we can find quickly.

Naming/documenting debugging sections is a good idea, but that should
not be done in every source code file that relies on that section. We
cannot remove all such DEBUG: declarations without developing a proper
way to name/document sections, but we can (and, given Bug 5194
existence, probably should) remove the unused ones -- their removal does
not remove any immediately usable info.

Bug 5194 report was specific to Section 56: Folks misinterpret section
56 "HTTP Message Body" title as promising to dump message bodies to
cache.log, which is not a functionality that should be driven by a
debugging section. Currently, Squid lacks such functionality.
doc/debug-sections.txt
src/HttpBody.cc
src/MemBuf.cc
src/StatHist.cc
src/String.cc
src/mem/Pool.cc
src/mem/PoolChunked.cc
src/mem/PoolMalloc.cc