]> git.ipfire.org Git - thirdparty/strongswan.git/commit
Merge branch 'debug-level-build'
authorTobias Brunner <tobias@strongswan.org>
Tue, 16 May 2023 10:48:22 +0000 (12:48 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 16 May 2023 11:05:33 +0000 (13:05 +0200)
commit7fa85ff379da8ffe5264c109723dd20f5f579821
treeb7c7fb6dbf1224b8a3e2ed9e58c23203f54b9c9c
parent7b453ae409ab92cd50568d6554d912cb1e138044
parent027ba4d12e339107977d53394c8f810296c5ad08
Merge branch 'debug-level-build'

This fixes the build with DEBUG_LEVEL < 4, which was broken when building
from the repository since --enable-warnings was made the default.

Although, most issues only occurred with the level reduced to 0/-1.  And
while removing debug statements at compile time completely is probably
not useful in production, there might be use cases in certain benchmarking
scenarios.  Also, with the recent changes to the controller there should
only rarely be a listener registered at a higher log level so the overhead
for those higher-level DBG statements is minimal.

Anyway, reducing the log level at compile time is a documented feature and
at least DEBUG_LEVEL=3 could be useful to prevent leaking sensitive
information via logs from the outset.  So we should make sure compilation
doesn't fail.