mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-09-20 19:19:50 +02:00
Update src/mod/info/logger/logger.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -162,7 +162,9 @@ func (l *Logger) ValidateAndUpdateLogFilepath() {
|
||||
|
||||
func (l *Logger) Close() {
|
||||
if l.file != nil {
|
||||
l.file.Close()
|
||||
if err := l.file.Close(); err != nil {
|
||||
log.Println("Error closing log file:", err)
|
||||
}
|
||||
}
|
||||
l.StopLogRotateTicker()
|
||||
}
|
||||
|
Reference in New Issue
Block a user