mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
add logrotate support for MinIO logs (#19641)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user