mirror of
https://github.com/fankes/beszel.git
synced 2025-10-20 02:09:28 +08:00
update debug logs
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user