fixed log file being opened as read only
This commit is contained in:
parent
7fe0828c8f
commit
c6dd4606e7
|
@ -2,7 +2,7 @@ package constants
|
|||
|
||||
const (
|
||||
// Version is the current version of the server.
|
||||
Version = "1.3.4"
|
||||
Version = "1.3.41"
|
||||
|
||||
// ExtensionLengthLimit means that file extensions cannot have more characters than the number specified.
|
||||
// file.png has an extension of 4.
|
||||
|
|
2
init.go
2
init.go
|
@ -86,7 +86,7 @@ func initLogger() {
|
|||
if !global.Configuration.Logging.Enabled {
|
||||
return
|
||||
}
|
||||
file, err := os.OpenFile(global.Configuration.Logging.LogFile, os.O_APPEND|os.O_CREATE|os.O_RDONLY, 0666)
|
||||
file, err := os.OpenFile(global.Configuration.Logging.LogFile, os.O_APPEND|os.O_RDWR|os.O_CREATE, 0644)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to open log file! %v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue