Skip to content

Commit

Permalink
dns: avoid logging when we discover a name in /etc/hosts
Browse files Browse the repository at this point in the history
This isn't particularly interesting information, and triggers a lot
of log spam: see [docker/for-mac#2699]

Signed-off-by: David Scott <[email protected]>
  • Loading branch information
djs55 committed Mar 15, 2018
1 parent 9b3905d commit f00f5c0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/hostnet/hostnet_dns.ml
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ let try_etc_hosts =
with
| None -> None
| Some v4 ->
Log.info (fun f ->
f "DNS: %s is %a in in /etc/hosts" (Dns.Name.to_string q_name)
Ipaddr.V4.pp_hum v4);
Some [ { name = q_name; cls = RR_IN;
flush = false; ttl = 0l; rdata = A v4 } ]
end
Expand All @@ -127,9 +124,6 @@ let try_etc_hosts =
with
| None -> None
| Some v6 ->
Log.info (fun f ->
f "DNS: %s is %a in in /etc/hosts" (Dns.Name.to_string q_name)
Ipaddr.V6.pp_hum v6);
Some [ { name = q_name; cls = RR_IN; flush = false; ttl = 0l;
rdata = AAAA v6 } ]
end
Expand Down

0 comments on commit f00f5c0

Please sign in to comment.