mirror of
https://github.com/jmcorgan/fips.git
synced 2026-08-09 08:14:42 +00:00
Demote 35 info-level log messages to debug for cleaner production output
Reduce info-level noise by moving intermediate steps, periodic telemetry, cross-connection resolution details, and redundant messages to debug. Info output now focuses on operator-relevant state changes: lifecycle events, peer promotions, session establishment, parent switches, and transport start/stop. Key categories demoted: - Handshake cross-connection resolution mechanics (10 messages) - Periodic MMP link/session metric reports (4 messages) - TUN cleanup messages redundant with lifecycle shutdown (4 messages) - Transport "packet channel closed" shutdown messages (4 messages) - Retry scheduling, discovery lookup initiation, other intermediate steps Change default RUST_LOG from debug to info in systemd unit files.
This commit is contained in:
+3
-3
@@ -7,7 +7,7 @@ use fips::config::{resolve_identity, IdentitySource};
|
||||
use fips::version;
|
||||
use fips::{Config, Node};
|
||||
use std::path::PathBuf;
|
||||
use tracing::{error, info, warn, Level};
|
||||
use tracing::{debug, error, info, warn, Level};
|
||||
use tracing_subscriber::{fmt, EnvFilter};
|
||||
|
||||
/// FIPS mesh network daemon
|
||||
@@ -41,7 +41,7 @@ async fn main() {
|
||||
info!("FIPS {} starting", version::short_version());
|
||||
|
||||
// Load configuration
|
||||
info!("Loading configuration");
|
||||
debug!("Loading configuration");
|
||||
let (config, loaded_paths) = if let Some(config_path) = &args.config {
|
||||
// Explicit config file specified - load only that file
|
||||
match Config::load_file(config_path) {
|
||||
@@ -88,7 +88,7 @@ async fn main() {
|
||||
// Create node with resolved identity
|
||||
let mut config = config;
|
||||
config.node.identity.nsec = Some(resolved.nsec);
|
||||
info!("Creating node");
|
||||
debug!("Creating node");
|
||||
let mut node = match Node::new(config) {
|
||||
Ok(node) => node,
|
||||
Err(e) => {
|
||||
|
||||
Reference in New Issue
Block a user