Skip to content

Commit

Permalink
Merge pull request #369 from djs55/remove-verbose-logs
Browse files Browse the repository at this point in the history
dns: avoid logging when we discover a name in /etc/hosts
  • Loading branch information
djs55 authored Apr 3, 2018
2 parents ad76822 + f00f5c0 commit 0e57efa
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 0e57efa

Please sign in to comment.