diff --git a/tvix/store/src/bin/tvix-store.rs b/tvix/store/src/bin/tvix-store.rs index 3e1c0ef9a..7f6766d00 100644 --- a/tvix/store/src/bin/tvix-store.rs +++ b/tvix/store/src/bin/tvix-store.rs @@ -110,7 +110,7 @@ async fn main() -> Result<(), Box> { .with(if cli.json { Some( tracing_subscriber::fmt::Layer::new() - .with_writer(io::stdout.with_max_level(level)) + .with_writer(io::stderr.with_max_level(level)) .json(), ) } else { @@ -119,7 +119,7 @@ async fn main() -> Result<(), Box> { .with(if !cli.json { Some( tracing_subscriber::fmt::Layer::new() - .with_writer(io::stdout.with_max_level(level)) + .with_writer(io::stderr.with_max_level(level)) .pretty(), ) } else { @@ -241,7 +241,8 @@ async fn main() -> Result<(), Box> { // from there (it might contain additional signatures). let path_info = path_info_service.put(path_info)?; - print_node(&path_info.node.unwrap().node.unwrap(), &path); + log_node(&path_info.node.unwrap().node.unwrap(), &path); + Ok(()) }); task @@ -302,7 +303,7 @@ async fn main() -> Result<(), Box> { Ok(()) } -fn print_node(node: &Node, path: &Path) { +fn log_node(node: &Node, path: &Path) { match node { Node::Directory(directory_node) => { info!(