From 3b84250c9a322d39071d4e477aadad051293ba63 Mon Sep 17 00:00:00 2001 From: Andrew Jackura Date: Tue, 29 May 2018 10:38:05 -0700 Subject: [PATCH] daisy: don't close cloud logger (#432) --- daisy/logger.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/daisy/logger.go b/daisy/logger.go index 9ca0df64c..74babf09a 100644 --- a/daisy/logger.go +++ b/daisy/logger.go @@ -68,13 +68,6 @@ func (w *Workflow) createLogger(ctx context.Context) { cloudLogName := fmt.Sprintf("daisy-%s-%s", w.Name, w.id) l.cloudLogger = w.cloudLoggingClient.Logger(cloudLogName) periodicFlush(func() { l.cloudLogger.Flush() }) - - w.addCleanupHook(func() dErr { - if err := w.cloudLoggingClient.Close(); err != nil { - return errf("error returned when closing Cloud logger client: %s", err) - } - return nil - }) } }