update debug logs

This commit is contained in:
Henry Dollman
2024-10-19 18:12:25 -04:00
parent 7f01d1ec7e
commit b5c158d1b3
2 changed files with 8 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
package agent
import (
"beszel"
"beszel/internal/entities/system"
"context"
"log/slog"
@@ -47,6 +48,8 @@ func (a *Agent) Run(pubKey []byte, addr string) {
}
}
slog.Debug(beszel.Version)
// Set sensors context (allows overriding sys location for sensors)
if sysSensors, exists := os.LookupEnv("SYS_SENSORS"); exists {
slog.Info("SYS_SENSORS", "path", sysSensors)