mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 17:59:28 +08:00
log stats on startup if log level is debug
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user