fixed log file being opened as read only

This commit is contained in:
vysion 2022-03-25 22:59:16 -07:00
parent 7fe0828c8f
commit c6dd4606e7
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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)
}