Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log Pod Name on Error #60

Merged
merged 1 commit into from
Jun 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/e2e/far_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ func checkFarLogs(logString string) {
if apiErrors.IsNotFound(err) {
// If FAR pod was running in testNodeName, then after reboot it was recreated in another node, and with a new name.
// Thus the "old" pod's name prior to this eventually won't link to a running pod, since it was already evicted by the reboot
log.Error(err, "failed to get logs. FAR pod might have been recreated due to rebooting the node it was resided. Might try again", "pod", pod)
log.Error(err, "failed to get logs. FAR pod might have been recreated due to rebooting the node it was resided. Might try again", "pod", pod.Name)
return ""
}
log.Error(err, "failed to get logs. Might try again", "pod", pod)
log.Error(err, "failed to get logs. Might try again", "pod", pod.Name)
return ""
}
return logs
Expand Down