hive-matrix-mcp: demote backup-key WARN where it actually runs, not just the fallback
This commit is contained in:
parent
2835c08cb0
commit
a28163a008
2 changed files with 12 additions and 4 deletions
|
|
@ -88,9 +88,11 @@ async fn main() -> Result<ExitCode> {
|
||||||
tracing_subscriber::EnvFilter::try_from_default_env().unwrap_or_else(|_| {
|
tracing_subscriber::EnvFilter::try_from_default_env().unwrap_or_else(|_| {
|
||||||
// matrix-sdk-crypto's own WARN fires every sync tick on any
|
// matrix-sdk-crypto's own WARN fires every sync tick on any
|
||||||
// account with no key-backup set up (the common case here) —
|
// account with no key-backup set up (the common case here) —
|
||||||
// ~1/2s/host swarm-wide, the single largest log message by
|
// measured at ~76k lines/day swarm-wide, the single largest
|
||||||
// count. Demoted only in the no-RUST_LOG default, so an
|
// log message by count. The unit normally sets RUST_LOG
|
||||||
// operator's explicit override still sees it if they ask.
|
// explicitly (see matrix.nix), so this fallback mainly
|
||||||
|
// covers a bare `cargo run`; an operator's explicit
|
||||||
|
// override still sees it if they ask.
|
||||||
tracing_subscriber::EnvFilter::new("info,matrix_sdk_crypto::backups=error")
|
tracing_subscriber::EnvFilter::new("info,matrix_sdk_crypto::backups=error")
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -315,7 +315,13 @@ in
|
||||||
# matrix sweep pushes unread-room + pending-invite todos here
|
# matrix sweep pushes unread-room + pending-invite todos here
|
||||||
# instead of firing wakes at hive-c0re's mcp.sock.
|
# instead of firing wakes at hive-c0re's mcp.sock.
|
||||||
HIVE_AGENT_SOCKET = "/run/hive-agent/${userName}/agent.sock";
|
HIVE_AGENT_SOCKET = "/run/hive-agent/${userName}/agent.sock";
|
||||||
RUST_LOG = "info";
|
# matrix-sdk-crypto's own backup-key WARN fires every sync tick on
|
||||||
|
# any account with no key-backup set up (all of ours) — demoted
|
||||||
|
# here, not just in the binary's own no-RUST_LOG fallback, because
|
||||||
|
# this unit always sets RUST_LOG and the fallback never runs
|
||||||
|
# otherwise. An operator overriding RUST_LOG for debugging can
|
||||||
|
# still add `matrix_sdk_crypto::backups=warn` back explicitly.
|
||||||
|
RUST_LOG = "info,matrix_sdk_crypto::backups=error";
|
||||||
}
|
}
|
||||||
# The store's coordinates and which agent this is, so the daemon reads
|
# The store's coordinates and which agent this is, so the daemon reads
|
||||||
# `swarm/agents/<agent>/matrix/<account>` as itself. The NAME and not a
|
# `swarm/agents/<agent>/matrix/<account>` as itself. The NAME and not a
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue