From 0dc731433be3800c579dfd72e67d53466838ed27 Mon Sep 17 00:00:00 2001 From: Jack McCluskey Date: Tue, 12 Sep 2023 14:11:54 -0400 Subject: [PATCH] Reset lastFlush properly --- sdks/go/container/tools/buffered_logging.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdks/go/container/tools/buffered_logging.go b/sdks/go/container/tools/buffered_logging.go index 8df02b2b767f..e31a79eb154d 100644 --- a/sdks/go/container/tools/buffered_logging.go +++ b/sdks/go/container/tools/buffered_logging.go @@ -78,6 +78,7 @@ func (b *BufferedLogger) FlushAtError(ctx context.Context) { b.logger.Errorf(ctx, message) } b.logs = nil + b.lastFlush = time.Now() } // FlushAtDebug flushes the contents of the buffer to the logging @@ -90,6 +91,7 @@ func (b *BufferedLogger) FlushAtDebug(ctx context.Context) { b.logger.Printf(ctx, message) } b.logs = nil + b.lastFlush = time.Now() } // Prints directly to the logging service. If the logger is nil, prints directly to the