1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-07 03:57:10 +00:00

fix the bug of lost argument in log function caused by PR: #946

Former-commit-id: 80fc2b2ff2455c328bb49b9ddcee519cf8138be9
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-03-28 17:16:29 +03:00
committed by GitHub

View File

@@ -85,8 +85,8 @@ func newRequestLogger() (h iris.Handler, close func() error) {
return err
}
c.LogFunc = func(now time.Time, latency time.Duration, status, ip, method, path string, message interface{}) {
output := logger.Columnize(now.Format("2006/01/02 - 15:04:05"), latency, status, ip, method, path, message)
c.LogFunc = func(now time.Time, latency time.Duration, status, ip, method, path string, message interface{},headerMessage interface{}) {
output := logger.Columnize(now.Format("2006/01/02 - 15:04:05"), latency, status, ip, method, path, message, headerMessage)
logFile.Write([]byte(output))
}