Merge PR #63: Fix infinite loop in log writer.

This commit is contained in:
Davide Beatrici 2020-04-12 21:07:36 +02:00 committed by GitHub
commit 30e28d06aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ func (target *logTarget) Write(out []byte) (int, error) {
target.mu.Lock() target.mu.Lock()
defer target.mu.Unlock() defer target.mu.Unlock()
return target.Write(out) return target.w.Write(out)
} }
// Rotate rotates the current log file, if one is opened. // Rotate rotates the current log file, if one is opened.