mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
fix log rewrite
This commit is contained in:
@@ -24,7 +24,7 @@ func Init(path, webpath string) {
|
|||||||
logPath = path
|
logPath = path
|
||||||
|
|
||||||
if webpath != "" {
|
if webpath != "" {
|
||||||
ff, err := os.OpenFile(webLogPath, os.O_RDWR|os.O_CREATE, 0666)
|
ff, err := os.OpenFile(webLogPath, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
TLogln("Error create web log file:", err)
|
TLogln("Error create web log file:", err)
|
||||||
} else {
|
} else {
|
||||||
@@ -39,7 +39,7 @@ func Init(path, webpath string) {
|
|||||||
os.Remove(path)
|
os.Remove(path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ff, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE, 0666)
|
ff, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
TLogln("Error create log file:", err)
|
TLogln("Error create log file:", err)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user