diff --git a/pkg/chain/chain.go b/pkg/chain/chain.go index 2a42a08d0..4d919f994 100644 --- a/pkg/chain/chain.go +++ b/pkg/chain/chain.go @@ -43,9 +43,8 @@ func GetTaskRunBackends(cs *cli.Clients, namespace string, tr *v1beta1.TaskRun) } // flushes buffer, if any defer func() { - if err := logger.Sync(); err != nil { - fmt.Println(err) - } + // intentionally ignoring error here, see https://github.com/uber-go/zap/issues/328 + _ = logger.Sync() }() sugaredLogger := logger.Sugar()