Skip to content

Commit 5743cff

Browse files
committed
Move added info and status stack trace to the end of line.
1 parent 7e01fe1 commit 5743cff

File tree

1 file changed

+1
-1
lines changed
  • staging/src/k8s.io/apiserver/pkg/server/httplog

1 file changed

+1
-1
lines changed

staging/src/k8s.io/apiserver/pkg/server/httplog/httplog.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func (rl *respLogger) Log() {
158158
latency := time.Since(rl.startTime)
159159
if klog.V(3) {
160160
if !rl.hijacked {
161-
klog.InfoDepth(1, fmt.Sprintf("%s %s: (%v) %v%v%v [%s %s]", rl.req.Method, rl.req.RequestURI, latency, rl.status, rl.statusStack, rl.addedInfo, rl.req.UserAgent(), rl.req.RemoteAddr))
161+
klog.InfoDepth(1, fmt.Sprintf("%s %s: (%v) %v [%s %s]%v%v", rl.req.Method, rl.req.RequestURI, latency, rl.status, rl.req.UserAgent(), rl.req.RemoteAddr, rl.statusStack, rl.addedInfo))
162162
} else {
163163
klog.InfoDepth(1, fmt.Sprintf("%s %s: (%v) hijacked [%s %s]", rl.req.Method, rl.req.RequestURI, latency, rl.req.UserAgent(), rl.req.RemoteAddr))
164164
}

0 commit comments

Comments
 (0)