Querylog -- Omit empty fields when writing json

This commit is contained in:
Eugene Bujak
2018-10-07 02:17:57 +03:00
parent a63fe958ae
commit dc1042c3e9
2 changed files with 4 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ var (
type logEntry struct {
Question []byte
Answer []byte
Answer []byte `json:",omitempty"` // sometimes empty answers happen like binerdunt.top or rev2.globalrootservers.net
Result dnsfilter.Result
Time time.Time
Elapsed time.Duration