Skip to content

Commit

Permalink
Merge pull request #81 from pohly/connection-loss-output
Browse files Browse the repository at this point in the history
connection: exit with less output on connection loss
  • Loading branch information
k8s-ci-robot authored Feb 17, 2021
2 parents 1ddd41d + 11016a4 commit 44b91e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connection/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ func ExitOnConnectionLoss() func() bool {
if err := ioutil.WriteFile(terminationLogPath, []byte(terminationMsg), 0644); err != nil {
klog.Errorf("%s: %s", terminationLogPath, err)
}
klog.Fatalf(terminationMsg)
klog.Exit(terminationMsg)
// Not reached.
return false
}
}
Expand Down

0 comments on commit 44b91e2

Please sign in to comment.