Skip to content

Commit 479de39

Browse files
committed
rwrap: Only report a notice when a search doesn't have a result
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
1 parent f068cda commit 479de39

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/resolv_wrapper.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,8 +1196,9 @@ static int rwrap_res_fake_hosts(const char *hostfile,
11961196
resp_size = rwrap_fake_empty(type, rrs->key, answer, anslen);
11971197
break;
11981198
default:
1199-
RWRAP_LOG(RWRAP_LOG_ERROR,
1200-
"Error searching for [%s]\n", query_name);
1199+
RWRAP_LOG(RWRAP_LOG_NOTICE,
1200+
"Searching for [%s] did not return any results\n",
1201+
query_name);
12011202
free(query_name);
12021203
return -1;
12031204
}

0 commit comments

Comments
 (0)