Skip to content

Commit 9a118c6

Browse files
committedAug 15, 2019
feat(log): make termination-log setup failure non-fatal
1 parent b51ff88 commit 9a118c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎cmd/configmap-server/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func runCmdFunc(cmd *cobra.Command, args []string) error {
5959
}
6060
err = log.AddDefaultWriterHooks(terminationLogPath)
6161
if err != nil {
62-
return err
62+
logrus.WithError(err).Warn("unable to set termination log path")
6363
}
6464
kubeconfig, err := cmd.Flags().GetString("kubeconfig")
6565
if err != nil {

0 commit comments

Comments
 (0)