[LOGGING] Fix #4: Sync() garanti au shutdown via ShutdownManager - Documentation améliorée
This commit is contained in:
parent
f39bced169
commit
90d4011070
1 changed files with 6 additions and 1 deletions
|
|
@ -1151,8 +1151,13 @@ func (c *Config) Close() error {
|
|||
}
|
||||
}
|
||||
|
||||
// FIX #4: Logger.Sync() est géré par le ShutdownManager dans main.go
|
||||
// Ne pas appeler Sync() ici pour éviter le double flush
|
||||
// Le ShutdownManager garantit le flush avec timeout et gestion d'erreur
|
||||
if c.Logger != nil {
|
||||
c.Logger.Sync()
|
||||
// Le logger sera sync'd par le ShutdownManager enregistré dans main.go
|
||||
// Pas besoin de Sync() ici car cela pourrait causer un double flush
|
||||
// et l'erreur serait ignorée de toute façon
|
||||
}
|
||||
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue