prune-dns: write each record to its own line

prune-dns: write each record to its own line

A long list of RRs can be incredibly difficult for a human to read when presented all on a single line in Ruby inspect format.

In practice, these messages are always written to a strongly ordered sink, like a regular file or a terminal, so there is little benefit in forcing a single message.

diff --git a/bin/prune-dns b/bin/prune-dns
index 2f8a554..d75344a 100755
--- a/bin/prune-dns
+++ b/bin/prune-dns
@@ -72,7 +72,7 @@ if old_records.size == 0
 end
 
 logger.warn "#{old_records.size } records to be removed:"
-logger.warn old_records.map { |rr| rr.short_inspect }
+old_records.each { |rr| logger.warn rr.short_inspect }
 
 case operation
 when :perform

GitHub sha: 9200038b8884bc7fbbc44b102faae841ddfc89c4

This commit appears in #20 which was merged by saj.