MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / log_event

Function log_event

atomic-repository/src/repository/observability.rs:959–965  ·  view source on GitHub ↗

Copy an event into the process log. It runs after the consent gate, so an un-opted repository's events reach neither the journal nor the log.

(kind: &BridgeEventKind)

Source from the content-addressed store, hash-verified

957/// Copy an event into the process log. It runs after the consent gate, so an
958/// un-opted repository's events reach neither the journal nor the log.
959fn log_event(kind: &BridgeEventKind) {
960 if log::log_enabled!(target: BRIDGE_EVENT_LOG_TARGET, log::Level::Info) {
961 if let Ok(json) = serde_json::to_string(kind) {
962 log::info!(target: BRIDGE_EVENT_LOG_TARGET, "{json}");
963 }
964 }
965}
966
967fn config_mtime_nanos(dot_dir: &Path) -> u64 {
968 std::fs::metadata(dot_dir.join("config.toml"))

Callers 1

emitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected