Add all uncompressed logs and fix service status

This commit is contained in:
Theodor S. Midtlien
2026-05-21 12:09:27 +02:00
parent a5a0bf6ff4
commit cdd31364b2
3 changed files with 26 additions and 21 deletions

View File

@@ -117,7 +117,7 @@ func isRotationDisabled(logger *log.Logger) bool {
func setupLogFile(logPath string, disableRotation bool) (io.Writer, error) {
if disableRotation {
file, err := os.OpenFile(logPath, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0o640)
file, err := os.OpenFile(logPath, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0750)
if err != nil {
return nil, fmt.Errorf("failed opening log file: %s", err)
}