Skip to content

Commit

Permalink
Change log format, add inbound ip to question log
Browse files Browse the repository at this point in the history
  • Loading branch information
shawn1m committed Sep 27, 2017
1 parent d6b1c6d commit 5875f09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/inbound/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (s *Server) ServeDNS(w dns.ResponseWriter, q *dns.Msg) {
s.Dispatcher.InboundIP = inboundIP
s.Dispatcher.QuestionMessage = q

log.Debug("Question: " + q.Question[0].String())
log.Debug("Question from " +inboundIP + ": " + q.Question[0].String())

for _, qt := range s.RejectQtype {
if isQuestionType(q, qt) {
Expand Down
2 changes: 1 addition & 1 deletion core/outbound/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (c *Client) logAnswer(indicator string) {
} else {
name = c.DNSUpstream.Name
}
log.Debug(name + " Answer: " + a.String())
log.Debug("Answer from " + name + ": " + a.String())
}
}

Expand Down

0 comments on commit 5875f09

Please sign in to comment.