diff options
| author | Stef Walter <stef@memberwebs.com> | 2008-07-02 20:32:39 +0000 | 
|---|---|---|
| committer | Stef Walter <stef@memberwebs.com> | 2008-07-02 20:32:39 +0000 | 
| commit | d8f7b96b39016dc6976a80d46eaebea950b89b55 (patch) | |
| tree | 602587cb94d5e168ad8453d9a6354689417b0aae /tools/notify-dns-slaves.c | |
| parent | 7ad0489523ada84a8f5f0497befc8684fb6f5f79 (diff) | |
Version 0.2
Diffstat (limited to 'tools/notify-dns-slaves.c')
| -rw-r--r-- | tools/notify-dns-slaves.c | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/notify-dns-slaves.c b/tools/notify-dns-slaves.c index a21ca1b..dfe74d1 100644 --- a/tools/notify-dns-slaves.c +++ b/tools/notify-dns-slaves.c @@ -136,6 +136,7 @@ typedef struct _notification {  static notification *the_notifications = NULL;  #define WHITESPACE " \t\r\n\v" +#define LOG_NORMAL 1  /* --------------------------------------------------------------------------------   * WARNINGS AND LOGGING @@ -148,8 +149,10 @@ vmessage(int level, int erno, const char* msg, va_list ap)  	char buf[MAX_MSGLEN];  	size_t len; +#if LOG_NORMAL  	if(debug_level < level)  		return; +#endif  	assert (msg); @@ -166,7 +169,9 @@ vmessage(int level, int erno, const char* msg, va_list ap)  	}  	/* Either to syslog or stderr */ +#if LOG_NORMAL  	if (is_helper && level != LOG_DEBUG) +#endif  		vsyslog (level, buf, ap);  	vwarnx (buf, ap); @@ -435,6 +440,9 @@ address_resolved (int ecode, struct addrinfo *ai, void *arg)  	for (not = &the_notifications; *not; not = &(*not)->next) {  		notif = *not; +		if (arg != notif) +			continue; +  		/* A bummer resolve */  		if (ecode) {  			warningx ("couldn't resolve server: %s: %s",  | 
