mirror of
https://github.com/fankes/beszel.git
synced 2025-10-20 02:09: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.initializeSystemInfo()
|
||||||
a.initializeDiskInfo()
|
a.initializeDiskInfo()
|
||||||
a.initializeNetIoStats()
|
a.initializeNetIoStats()
|
||||||
a.dockerManager = newDockerManager()
|
a.dockerManager = newDockerManager()
|
||||||
|
|
||||||
|
// if debugging, print stats
|
||||||
|
if a.debug {
|
||||||
|
slog.Debug("Stats", "data", a.gatherStats())
|
||||||
|
}
|
||||||
|
|
||||||
a.startServer(pubKey, addr)
|
a.startServer(pubKey, addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user