Watch
0
0
Fork
You've already forked hyperhive
0

seven daemons log through hive-log so the log store gets their severities

This commit is contained in:
maia 2026-11-19 07:26:38 +01:00 • committed by mara
commit b21a3e3632

View file

@ -50,16 +50,7 @@ pub fn agent_socket() -> std::path::PathBuf {
/// Install the tracing subscriber both binaries use: `RUST_LOG` when set,
/// `info` otherwise.
pub fn init_tracing() {
tracing_subscriber::fmt()
.with_env_filter(
tracing_subscriber::EnvFilter::try_from_env("RUST_LOG")
.unwrap_or_else(|_| tracing_subscriber::EnvFilter::new("info")),
)
// This is a systemd-managed daemon — stdout always goes to journald,
// never a human terminal, and journald doesn't strip ANSI escapes:
// they land in victorialogs as raw byte-array spam otherwise.
.with_ansi(false)
.init();
hive_log::init();
}
/// Read `HYPERHIVE_STATE_DIR`, the directory holding the agent's