]> granicus.if.org Git - pdns/commit
Add options to LogAction() so it can append (instead of truncate) and write without...
authorwessels <dwessels@farnsworth.verisignlabs.com>
Wed, 17 Aug 2016 22:34:11 +0000 (18:34 -0400)
committerwessels <dwessels@farnsworth.verisignlabs.com>
Wed, 17 Aug 2016 22:34:11 +0000 (18:34 -0400)
commit456fc64526956e9426e0278aac49e5dcb56b6dc9
treefa194a2426cfe60b9dd173421abd06427e2c793f
parent1fa69203a49eb0d51913e23de656960d1c390e55
Add options to LogAction() so it can append (instead of truncate) and write without buffering.

Was so happy to discover LogAction() but disappointed that it truncates
the file each time the process starts, and apparently doesn't flush the
file upon exiting.  With two new optional args, the file can be appended
rather than truncated and buffering disabled.  The defaults remain as
before, which is to say to truncate and to buffer.
pdns/README-dnsdist.md
pdns/dnsdist-console.cc
pdns/dnsdist-lua.cc
pdns/dnsdistconf.lua
pdns/dnsrulactions.hh