Skip to content

Commit

Permalink
Fixed the logger printout to include the reason of failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
gemblerz committed Sep 11, 2024
1 parent b0db245 commit 94d4ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/nodescheduler/nodescheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ func (ns *NodeScheduler) handleKubernetesEventEvent(e KubernetesEvent) {
case "FailedPostStartHook", "Failed", "FailedMount", "FailedCreatePodSandBox":
// NOTE: There can be multiple Reasons of a failure. We try to capture them
// as much as possible.
logger.Info.Printf("Plugin %q failed due to FailedPostStartHook", obj.Name)
logger.Info.Printf("Plugin %q failed due to %s", obj.Name, event.Reason)
pr.Failed()
message := datatype.NewSchedulerEventBuilder(datatype.EventPluginStatusFailed).
AddPluginRuntimeMeta(*pr).
Expand Down

0 comments on commit 94d4ca6

Please sign in to comment.