mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user