[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r5301 - in branches/OpenDNSSEC-1.3/signer/src: shared signer

Matthijs Mekking matthijs at nlnetlabs.nl
Fri Jul 8 09:01:04 CEST 2011


Author: matthijs
Date: 2011-07-08 09:01:03 +0200 (Fri, 08 Jul 2011)
New Revision: 5301

Modified:
   branches/OpenDNSSEC-1.3/signer/src/shared/file.c
   branches/OpenDNSSEC-1.3/signer/src/signer/tools.c
Log:
Pivotal #15342489: Additional error log message
https://www.pivotaltracker.com/story/show/15342489



Modified: branches/OpenDNSSEC-1.3/signer/src/shared/file.c
===================================================================
--- branches/OpenDNSSEC-1.3/signer/src/shared/file.c	2011-07-07 16:12:06 UTC (rev 5300)
+++ branches/OpenDNSSEC-1.3/signer/src/shared/file.c	2011-07-08 07:01:03 UTC (rev 5301)
@@ -376,6 +376,8 @@
             case 0:
                 return ODS_STATUS_OK;
             default:
+                ods_log_error("[%s] %s failed: return value %i",
+                    file_str, CP_COMMAND, retval);
                 return ODS_STATUS_ERR;
         }
     }

Modified: branches/OpenDNSSEC-1.3/signer/src/signer/tools.c
===================================================================
--- branches/OpenDNSSEC-1.3/signer/src/signer/tools.c	2011-07-07 16:12:06 UTC (rev 5300)
+++ branches/OpenDNSSEC-1.3/signer/src/signer/tools.c	2011-07-08 07:01:03 UTC (rev 5301)
@@ -111,8 +111,8 @@
             (void) unlink(lockname); /* unlocked */
 
             if (status != ODS_STATUS_OK) {
-                ods_log_error("[%s] unable to copy axfr file %s to %s: %s"
-                    "%s", tools_str, tmpname, zone->adinbound->configstr,
+                ods_log_error("[%s] unable to copy axfr file %s to %s: %s",
+                    tools_str, tmpname, zone->adinbound->configstr,
                     ods_status2str(status));
                 free((void*)tmpname);
                 free((void*)lockname);
@@ -135,8 +135,8 @@
         free((void*)tmpname);
         tmpname = NULL;
         if (status != ODS_STATUS_OK) {
-            ods_log_error("[%s] unable to copy zone input file %s: "
-                "%s", tools_str, zone->name?zone->name:"(null)",
+            ods_log_error("[%s] unable to copy zone input file %s: %s",
+                tools_str, zone->name?zone->name:"(null)",
                 ods_status2str(status));
         }
     }




More information about the Opendnssec-commits mailing list