log stats on startup if log level is debug

This commit is contained in:
Henry Dollman
2024-10-02 19:58:02 -04:00
parent f051f6a5f8
commit 66cc0a4b24

View File

@@ -59,11 +59,17 @@ func (a *Agent) Run(pubKey []byte, addr string) {
}
}
// initialize system info / docker manager
a.initializeSystemInfo()
a.initializeDiskInfo()
a.initializeNetIoStats()
a.dockerManager = newDockerManager()
// if debugging, print stats
if a.debug {
slog.Debug("Stats", "data", a.gatherStats())
}
a.startServer(pubKey, addr)
}