]> git.ipfire.org Git - thirdparty/bind9.git/commit
Log plugin unloading at debug level
authorMichał Kępień <michal@isc.org>
Wed, 6 Mar 2019 07:31:07 +0000 (08:31 +0100)
committerEvan Hunt <each@isc.org>
Wed, 6 Mar 2019 20:55:29 +0000 (12:55 -0800)
commit9036952f849d1f0cc75c0d579e2ec48627a8a8f7
tree4628fd2cc212899a6ad52d90d2dad34989183ccb
parent3e676b0d65d3ff87b1bae645f3372abc3e514ac3
Log plugin unloading at debug level

During server reconfiguration, plugin instances set up for the old views
are unloaded very close to the end of the whole process, after new
plugin instances are set up.  As the log message announcing plugin
unloading is emitted at the default "info" level, the user might be
misled into thinking that it is the new plugin instances that are being
unloaded for some reason, particularly because all other messages logged
at the "info" level around the same time inform about setting things up
rather than tearing them down.  Since no distinction is currently made
between destroying a view due to reconfiguration and due to a shutdown
in progress, there is no easy way to vary the contents of the log
message depending on circumstances.  Since this message is not a
particularly critical one, demote it to debug level to prevent
confusion.

(cherry picked from commit af4b81f94434b7680250553bfa444c6983628cdb)
lib/ns/hooks.c