Skip to content

Commit

Permalink
log stats on startup if log level is debug
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Oct 2, 2024
1 parent f051f6a commit 66cc0a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions beszel/internal/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 66cc0a4

Please sign in to comment.