Skip to content

Commit 2bd6d33

Browse files
author
JellyTony
committed
更新 go.mod 最小依赖版本
1 parent ef87876 commit 2bd6d33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lumberjack.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"fmt"
2828
"io"
2929
"io/ioutil"
30-
"log/slog"
30+
"log"
3131
"os"
3232
"path/filepath"
3333
"sort"
@@ -226,7 +226,7 @@ func (l *RollingFile) close() error {
226226
}
227227
err := l.file.Sync()
228228
if err != nil {
229-
slog.Error("sync file error: ", err)
229+
log.Fatalln("sync file error: ", err)
230230
}
231231
err = l.file.Close()
232232
l.file = nil

0 commit comments

Comments
 (0)