Merge pull request #713 from seefs001/main
This commit is contained in:
@@ -36,7 +36,7 @@ func SetupLogger() {
|
|||||||
setupLogLock.Unlock()
|
setupLogLock.Unlock()
|
||||||
setupLogWorking = false
|
setupLogWorking = false
|
||||||
}()
|
}()
|
||||||
logPath := filepath.Join(*LogDir, fmt.Sprintf("oneapi-%s.log", time.Now().Format("20060102")))
|
logPath := filepath.Join(*LogDir, fmt.Sprintf("oneapi-%s.log", time.Now().Format("20060102150405")))
|
||||||
fd, err := os.OpenFile(logPath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
|
fd, err := os.OpenFile(logPath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("failed to open log file")
|
log.Fatal("failed to open log file")
|
||||||
|
|||||||
Reference in New Issue
Block a user