Skip to content

Commit 44b91e2

Browse files
authored
Merge pull request #81 from pohly/connection-loss-output
connection: exit with less output on connection loss
2 parents 1ddd41d + 11016a4 commit 44b91e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

connection/connection.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ func ExitOnConnectionLoss() func() bool {
8484
if err := ioutil.WriteFile(terminationLogPath, []byte(terminationMsg), 0644); err != nil {
8585
klog.Errorf("%s: %s", terminationLogPath, err)
8686
}
87-
klog.Fatalf(terminationMsg)
87+
klog.Exit(terminationMsg)
88+
// Not reached.
8889
return false
8990
}
9091
}

0 commit comments

Comments
 (0)