Skip to main content

log_stats

Function log_stats 

Source
fn log_stats(stats: &RegistryStats, disk: Option<&DiskHealth>)
Expand description

Writes one health line.

Counts only, and a fixed number of them. Nothing here can name an account or quote a record, so the line is safe to leave running for the life of a process — and nothing here grows with what the deployment holds, so it stays one line. A real account carries dozens of collections and their names are long; rendered inline, every ten seconds, they are most of the log. bot.did.stats answers which collections, on request.

disk_free and disk_total are the data volume’s, in bytes, so the journal holds a history of how fast it filled. A run with no data directory writes neither.