[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r3796 - trunk/OpenDNSSEC/signer/src/util

Matthijs Mekking matthijs at nlnetlabs.nl
Thu Aug 26 13:38:11 CEST 2010


Author: matthijs
Date: 2010-08-26 13:38:11 +0200 (Thu, 26 Aug 2010)
New Revision: 3796

Modified:
   trunk/OpenDNSSEC/signer/src/util/log.c
Log:
log with program name ods-signerd instead of opendnssec



Modified: trunk/OpenDNSSEC/signer/src/util/log.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/util/log.c	2010-08-26 09:04:17 UTC (rev 3795)
+++ trunk/OpenDNSSEC/signer/src/util/log.c	2010-08-26 11:38:11 UTC (rev 3796)
@@ -70,7 +70,9 @@
    -
 */
 
+#define MY_PACKAGE_TARNAME "ods-signerd"
 
+
 /**
  * Initialize logging.
  *
@@ -96,7 +98,7 @@
     }
     if(use_syslog) {
        facility = se_log_get_facility(filename);
-       openlog(PACKAGE_TARNAME, LOG_NDELAY, facility);
+       openlog(MY_PACKAGE_TARNAME, LOG_NDELAY, facility);
        logging_to_syslog = 1;
        return;
     }
@@ -215,7 +217,7 @@
     nowstr[CTIME_LENGTH-2] = '\0'; /* remove trailing linefeed */
 
     fprintf(logfile, "[%s] %s[%i] %s: %s\n", nowstr,
-        PACKAGE_TARNAME, priority, t, message);
+        MY_PACKAGE_TARNAME, priority, t, message);
     fflush(logfile);
 }
 




More information about the Opendnssec-commits mailing list