reverseproxy: Fix log message

Fixes regression from #6560
This commit is contained in:
Matthew Holt 2024-10-21 12:19:04 -06:00
parent 669fc41e63
commit 5e6024c48d
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ func (h *Handler) handleUpgradeResponse(logger *zap.Logger, wg *sync.WaitGroup,
start := time.Now() start := time.Now()
defer func() { defer func() {
conn.Close() conn.Close()
if c := logger.Check(zapcore.DebugLevel, "hijack failed on protocol switch"); c != nil { if c := logger.Check(zapcore.DebugLevel, "connection closed"); c != nil {
c.Write(zap.Duration("duration", time.Since(start))) c.Write(zap.Duration("duration", time.Since(start)))
} }
}() }()