diff options
author | 2019-10-17 15:53:11 +0100 | |
---|---|---|
committer | 2019-10-17 15:53:11 +0100 | |
commit | 5f114d38cab74f0c5c99b03ffe99f5607e393a92 (patch) | |
tree | 0aea9f0e38bb77fd3e8f0b4fde41e2905d65d262 /plugin/normalize_test.go | |
parent | c187d8fa01f94c7b5c94dff0386bada2fe6a92aa (diff) | |
download | coredns-5f114d38cab74f0c5c99b03ffe99f5607e393a92.tar.gz coredns-5f114d38cab74f0c5c99b03ffe99f5607e393a92.tar.zst coredns-5f114d38cab74f0c5c99b03ffe99f5607e393a92.zip |
pkg/log: add Clear to stop debug logging (#3372)
When reloading we need to disable debug output when the debug plugin is
removed from the config file. Add a `Clear` function to pkg/log and use
it in the server server.
Add test case in pkg/log, for actuall check I manually checked the
output by sprinkling some debug statements in the startup and checking
with sending SIGUSR1.
Also clear up the comments in pkg/log to remove the text about time
stamping.
Fixes: #3035
Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/normalize_test.go')
0 files changed, 0 insertions, 0 deletions