Skip to content

Commit

Permalink
chore: improve default logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dpc authored and elsirion committed Nov 9, 2024
1 parent fee6f6f commit 129f553
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions devimint/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ impl ProcessManager {

/// Logs to $FM_LOGS_DIR/{name}.{out,err}
pub async fn spawn_daemon(&self, name: &str, mut cmd: Command) -> Result<ProcessHandle> {
debug!(target: LOG_DEVIMINT, %name, "Spawning daemon");
let logs_dir = env::var(FM_LOGS_DIR_ENV)?;
let path = format!("{logs_dir}/{name}.log");
let log = OpenOptions::new()
Expand Down
4 changes: 3 additions & 1 deletion fedimint-logging/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ impl TracingSetup {
// We prefix everything with a default general log level and
// good per-module specific default. User provided RUST_LOG
// can override one or both
"{},{},{},{},{},{}",
"{},{},{},{},{},{},{},{}",
self.base_level.as_deref().unwrap_or("info"),
"jsonrpsee_core::client::async_client=off",
"hyper=off",
"h2=off",
"jsonrpsee_server=warn,jsonrpsee_server::transport=off",
"AlephBFT-=error",
var,
Expand Down

0 comments on commit 129f553

Please sign in to comment.