From c4a06d6c6ae8799d1813e53ca398bd72855fe5eb Mon Sep 17 00:00:00 2001 From: Amy Gale Ruth Bowersox Date: Sun, 8 Mar 2026 23:12:47 -0600 Subject: [PATCH] small fix to locking --- logging.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/logging.go b/logging.go index eff9c3a..2668b92 100644 --- a/logging.go +++ b/logging.go @@ -187,8 +187,6 @@ func (lf *amLogFile) rotate() error { if lf.keep == 0 && lf.keepCompressed == 0 { return nil // degenerate case, keep the log file the same } - lf.mutex.Lock() - defer lf.mutex.Unlock() // Close existing logfile if it's open. reopen := lf.wr != nil if reopen {