Implement instance log rotation

This commit is contained in:
2025-12-08 20:21:44 +01:00
parent 48836c9c12
commit e2a49402d6
9 changed files with 155 additions and 96 deletions

View File

@@ -63,8 +63,8 @@ func main() {
}
// Create logs directory
if err := os.MkdirAll(cfg.Instances.LogsDir, 0755); err != nil {
log.Printf("Error creating log directory %s: %v\nInstance logs will not be available.", cfg.Instances.LogsDir, err)
if err := os.MkdirAll(cfg.Instances.Logging.LogsDir, 0755); err != nil {
log.Printf("Error creating log directory %s: %v\nInstance logs will not be available.", cfg.Instances.Logging.LogsDir, err)
}
}