Skip to content

Commit

Permalink
更新 go.mod 最小依赖版本
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyTony committed Mar 11, 2024
1 parent ef87876 commit 2bd6d33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lumberjack.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"fmt"
"io"
"io/ioutil"
"log/slog"
"log"
"os"
"path/filepath"
"sort"
Expand Down Expand Up @@ -226,7 +226,7 @@ func (l *RollingFile) close() error {
}
err := l.file.Sync()
if err != nil {
slog.Error("sync file error: ", err)
log.Fatalln("sync file error: ", err)
}
err = l.file.Close()
l.file = nil
Expand Down

0 comments on commit 2bd6d33

Please sign in to comment.