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)
| 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. |
| 959 | fn 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 | |
| 967 | fn config_mtime_nanos(dot_dir: &Path) -> u64 { |
| 968 | std::fs::metadata(dot_dir.join("config.toml")) |