1
0
mirror of https://github.com/drakkan/sftpgo.git synced 2025-11-29 22:08:10 +02:00

update deps

chi 4.1.0 requires some minor code changes
This commit is contained in:
Nicola Murino
2020-04-03 22:30:30 +02:00
parent 94b46e57f1
commit c93d8cecfc
5 changed files with 42 additions and 38 deletions

View File

@@ -54,7 +54,7 @@ func (l *StructuredLogger) NewLogEntry(r *http.Request) middleware.LogEntry {
}
// Write logs a new entry at the end of the HTTP request
func (l *StructuredLoggerEntry) Write(status, bytes int, elapsed time.Duration) {
func (l *StructuredLoggerEntry) Write(status, bytes int, header http.Header, elapsed time.Duration, extra interface{}) {
metrics.HTTPRequestServed(status)
l.Logger.Info().
Timestamp().