[Opendnssec-commits] [svn.opendnssec.org/svn/dnssec] r6048 - in branches/OpenDNSSEC-1.3/auditor/lib: . kasp_auditor

alexd at nominet.org.uk alexd at nominet.org.uk
Tue Jan 10 10:26:33 CET 2012


Author: alex
Date: 2012-01-10 10:26:33 +0100 (Tue, 10 Jan 2012)
New Revision: 6048

Modified:
   branches/OpenDNSSEC-1.3/auditor/lib/kasp_auditor.rb
   branches/OpenDNSSEC-1.3/auditor/lib/kasp_auditor/auditor.rb
Log:
OPENDNSSEC-195 : add zone name to log output from auditor

Modified: branches/OpenDNSSEC-1.3/auditor/lib/kasp_auditor/auditor.rb
===================================================================
--- branches/OpenDNSSEC-1.3/auditor/lib/kasp_auditor/auditor.rb	2012-01-09 15:37:58 UTC (rev 6047)
+++ branches/OpenDNSSEC-1.3/auditor/lib/kasp_auditor/auditor.rb	2012-01-10 09:26:33 UTC (rev 6048)
@@ -1122,6 +1122,7 @@
       if (pri.to_i < @ret_val)
         @ret_val = pri.to_i
       end
+      msg = "#{@zone_name} : #{msg}"
       return if (@num_output_lines >= 100)
       @num_output_lines += 1
       if (@num_output_lines == 100)

Modified: branches/OpenDNSSEC-1.3/auditor/lib/kasp_auditor.rb
===================================================================
--- branches/OpenDNSSEC-1.3/auditor/lib/kasp_auditor.rb	2012-01-09 15:37:58 UTC (rev 6047)
+++ branches/OpenDNSSEC-1.3/auditor/lib/kasp_auditor.rb	2012-01-10 09:26:33 UTC (rev 6048)
@@ -103,6 +103,7 @@
     # Run the auditor.
     def run
       conf_file = @conf_file
+      @zone_name = "" if (!@zone_name)
       @zone_name.chomp(".")
       if (!conf_file)
         KASPAuditor.exit("No configuration file specified", 1)




More information about the Opendnssec-commits mailing list