mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
use log callback, not fprintf in dlz_example.c
This commit is contained in:
parent
53402b52b6
commit
a35344d82f
1 changed files with 4 additions and 2 deletions
|
|
@ -322,7 +322,8 @@ dlz_findzonedb(void *dbdata, const char *name,
|
|||
methods->sourceip(clientinfo, &src);
|
||||
fmt_address(src, addrbuf, sizeof(addrbuf));
|
||||
}
|
||||
fprintf(stderr, "findzonedb: connection from: %s\n", addrbuf);
|
||||
state->log(ISC_LOG_INFO,
|
||||
"dlz_example: findzonedb connection from: %s\n", addrbuf);
|
||||
|
||||
state->log(ISC_LOG_INFO,
|
||||
"dlz_example: dlz_findzonedb called with name '%s' "
|
||||
|
|
@ -394,7 +395,8 @@ dlz_lookup(const char *zone, const char *name, void *dbdata,
|
|||
fmt_address(src, buf, sizeof(buf));
|
||||
}
|
||||
|
||||
fprintf(stderr, "lookup: connection from: %s\n", buf);
|
||||
state->log(ISC_LOG_INFO,
|
||||
"dlz_example: lookup connection from: %s\n", buf);
|
||||
|
||||
found = ISC_TRUE;
|
||||
result = state->putrr(lookup, "TXT", 0, buf);
|
||||
|
|
|
|||
Loading…
Reference in a new issue