add logrotate support for MinIO logs (#19641)

This commit is contained in:
Harshavardhana
2024-05-01 10:57:52 -07:00
committed by GitHub
parent dbfb5e797b
commit 8c1bba681b
11 changed files with 259 additions and 43 deletions

View File

@@ -31,6 +31,10 @@ import (
func handleSignals() {
// Custom exit function
exit := func(success bool) {
if globalLoggerOutput != nil {
globalLoggerOutput.Close()
}
// If global profiler is set stop before we exit.
globalProfilerMu.Lock()
defer globalProfilerMu.Unlock()