1
0
mirror of https://github.com/labstack/echo.git synced 2025-11-27 22:38:25 +02:00

Add start time to request logger middleware values (#1991)

This commit is contained in:
Martti T
2021-09-23 23:17:09 +03:00
committed by GitHub
parent 4651c7aafe
commit a2e6ca7ed6
2 changed files with 6 additions and 1 deletions

View File

@@ -296,6 +296,7 @@ func TestRequestLogger_allFields(t *testing.T) {
err := mw(c)
assert.NoError(t, err)
assert.Equal(t, time.Unix(1631045377, 0), expect.StartTime)
assert.Equal(t, 10*time.Second, expect.Latency)
assert.Equal(t, "HTTP/1.1", expect.Protocol)
assert.Equal(t, "8.8.8.8", expect.RemoteIP)