comparison dbutil.c @ 1214:61d3f56808a4

Merge pull request #18 from annulen/dbclient_syslog Support syslog logging in dbclient.
author Matt Johnston <matt@ucc.asn.au>
date Tue, 15 Dec 2015 21:55:51 +0800
parents 6ecc133fb2ee
children 2bb4c662d1c2
comparison
equal deleted inserted replaced
1209:ab7d9c12caa7 1214:61d3f56808a4
82 #ifdef DEBUG_TRACE 82 #ifdef DEBUG_TRACE
83 int debug_trace = 0; 83 int debug_trace = 0;
84 #endif 84 #endif
85 85
86 #ifndef DISABLE_SYSLOG 86 #ifndef DISABLE_SYSLOG
87 void startsyslog() { 87 void startsyslog(const char *ident) {
88 88
89 openlog(PROGNAME, LOG_PID, LOG_AUTHPRIV); 89 openlog(ident, LOG_PID, LOG_AUTHPRIV);
90 90
91 } 91 }
92 #endif /* DISABLE_SYSLOG */ 92 #endif /* DISABLE_SYSLOG */
93 93
94 /* the "format" string must be <= 100 characters */ 94 /* the "format" string must be <= 100 characters */