Skip to content

Commit

Permalink
reverseproxy: Fix log message
Browse files Browse the repository at this point in the history
Fixes regression from #6560
  • Loading branch information
mholt committed Oct 21, 2024
1 parent 669fc41 commit 5e6024c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/caddyhttp/reverseproxy/streaming.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (h *Handler) handleUpgradeResponse(logger *zap.Logger, wg *sync.WaitGroup,
start := time.Now()
defer func() {
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)))
}
}()
Expand Down

0 comments on commit 5e6024c

Please sign in to comment.