Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix: Wire up LOG_FILE, LOG_MAX_SIZE, LOG_MAX_AGE, LOG_COMPRESS config options. Related to #979

rcourtman59eca65ff6c6
diff --git a/cmd/pulse/main.go b/cmd/pulse/main.go
index 6c59820280..8d5e980bf1 100644
--- a/cmd/pulse/main.go
+++ b/cmd/pulse/main.go
@@ -97,9 +97,13 @@ func runServer() {
// Re-initialize logging with configuration-driven settings
logging.Init(logging.Config{
- Format: cfg.LogFormat,
- Level: cfg.LogLevel,
- Component: "pulse",
+ Format: cfg.LogFormat,
+ Level: cfg.LogLevel,
+ Component: "pulse",
+ FilePath: cfg.LogFile,
+ MaxSizeMB: cfg.LogMaxSize,
+ MaxAgeDays: cfg.LogMaxAge,
+ Compress: cfg.LogCompress,
})
// Initialize license public key for Pro feature validation
diff --git a/internal/config/config.go b/internal/config/config.go
index 88f4395eea..eab3303f24 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -1419,9 +1419,13 @@ func Load() (*Config, error) {
// Initialize logging with configuration values
logging.Init(logging.Config{
- Format: cfg.LogFormat,
- Level: cfg.LogLevel,
- Component: "pulse-config",
+ Format: cfg.LogFormat,
+ Level: cfg.LogLevel,
+ Component: "pulse-config",
+ FilePath: cfg.LogFile,
+ MaxSizeMB: cfg.LogMaxSize,
+ MaxAgeDays: cfg.LogMaxAge,
+ Compress: cfg.LogCompress,
})
// Initialize DNS cache with configured timeout