mirror of
https://github.com/coredns/coredns.git
synced 2025-10-31 18:23:13 -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:
@@ -80,7 +80,7 @@ const (
|
||||
// DefaultLogFilename is the default log filename.
|
||||
DefaultLogFilename = "query.log"
|
||||
// CommonLogFormat is the common log format.
|
||||
CommonLogFormat = `{remote} ` + CommonLogEmptyValue + ` [{when}] "{type} {class} {name} {proto} {>do} {>bufsize}" {rcode} {size} {duration}`
|
||||
CommonLogFormat = `{remote} ` + CommonLogEmptyValue + ` [{when}] "{type} {class} {name} {proto} {size} {>do} {>bufsize}" {rcode} {rsize} {duration}`
|
||||
// CommonLogEmptyValue is the common empty log value.
|
||||
CommonLogEmptyValue = "-"
|
||||
// CombinedLogFormat is the combined log format.
|
||||
|
||||
Reference in New Issue
Block a user