middleware/log: make {size} the length of the request (#449)

* middleware/log: make {size} the length of the request

{size} is the lenght of the request, {rsize} is the length of the
reply.

* Fix test
This commit is contained in:
Miek Gieben
2016-11-30 20:44:00 +00:00
committed by GitHub
parent b85c6788dd
commit b086e5f64d
4 changed files with 10 additions and 8 deletions

View File

@@ -39,7 +39,7 @@ func TestLoggedStatus(t *testing.T) {
}
logged := f.String()
if !strings.Contains(logged, "A IN example.org. udp false 512") {
if !strings.Contains(logged, "A IN example.org. udp 29 false 512") {
t.Errorf("Expected it to be logged. Logged string: %s", logged)
}
}