Browse Source

Merge pull request #64 from dora-rs/less-zenoh-logging

Reduce log level for zenoh subcrates
tags/v0.0.0-test.4
Philipp Oppermann GitHub 3 years ago
parent
commit
22af306f3a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions
  1. +2
    -0
      binaries/runtime/src/main.rs
  2. +2
    -2
      examples/c-dataflow/run.rs

+ 2
- 0
binaries/runtime/src/main.rs View File

@@ -284,6 +284,8 @@ fn set_up_logger() -> Result<(), fern::InitError> {
})
.level(log::LevelFilter::Debug)
.level_for("zenoh", log::LevelFilter::Warn)
.level_for("zenoh_transport", log::LevelFilter::Warn)
.level_for("zenoh_link_tcp", log::LevelFilter::Warn)
.chain(std::io::stdout())
.chain(fern::log_file("runtime.log")?)
.apply()?;


+ 2
- 2
examples/c-dataflow/run.rs View File

@@ -3,12 +3,12 @@ use std::path::Path;

#[tokio::main]
async fn main() -> eyre::Result<()> {
std::env::set_current_dir(Path::new(file!()).parent().unwrap())
let root = Path::new(env!("CARGO_MANIFEST_DIR"));
std::env::set_current_dir(root.join(file!()).parent().unwrap())
.wrap_err("failed to set working dir")?;

tokio::fs::create_dir_all("build").await?;

let root = Path::new(env!("CARGO_MANIFEST_DIR"));
build_package("dora-runtime").await?;
build_package("dora-node-api-c").await?;
build_c_node(root, "node.c", "c_node").await?;


Loading…
Cancel
Save