@@ -35,10 +35,6 @@ const (
3535 // logBufferSize is the size of the buffer for reading logs from the operator (debugging purposes)
3636 logBufferSize = 64 * 1024 // 64KB
3737
38- // operatorLogLines is the number of log lines to capture from the operator.
39- // Set to 2000 to ensure we capture logs from before the failure occurred,
40- // not just the steady-state logs after the failure.
41- operatorLogLines = 2000
4238 // eventLookbackDuration is how far back to look for events
4339 eventLookbackDuration = 10 * time .Minute
4440)
@@ -88,10 +84,10 @@ func CollectAllDiagnostics(tc TestContext) {
8884}
8985
9086// dumpOperatorLogs captures and prints operator logs at INFO level.
91- // Captures the last operatorLogLines lines from all containers in the operator pod.
87+ // Captures all logs from all containers in the operator pod.
9288func dumpOperatorLogs (tc TestContext ) {
9389 logger .Info ("================================================================================" )
94- logger .Infof ("=== OPERATOR LOGS (last %d lines ) ===" , operatorLogLines )
90+ logger .Info ("=== OPERATOR LOGS (all ) ===" )
9591 logger .Info ("================================================================================" )
9692
9793 // List pods in the operator namespace
@@ -141,10 +137,8 @@ func dumpOperatorLogs(tc TestContext) {
141137 for _ , container := range pod .Spec .Containers {
142138 logger .Infof ("--- Container: %s Logs ---" , container .Name )
143139
144- tailLines := int64 (operatorLogLines )
145140 req := tc .Clientset .CoreV1 ().Pods (setup .OperatorNamespace ).GetLogs (pod .Name , & corev1.PodLogOptions {
146141 Container : container .Name ,
147- TailLines : & tailLines ,
148142 })
149143
150144 logStream , err := req .Stream (tc .Ctx )
0 commit comments