Browse Source

Fix: Don't try to create two global tracing subscribers when using bundled runtime

tags/v0.2.3-rc
Philipp Oppermann 2 years ago
parent
commit
9217d848ee
Failed to extract signature
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      binaries/daemon/src/main.rs

+ 3
- 3
binaries/daemon/src/main.rs View File

@@ -36,9 +36,6 @@ async fn main() -> eyre::Result<()> {
}

async fn run() -> eyre::Result<()> {
#[cfg(feature = "tracing")]
set_up_tracing("dora-daemon").wrap_err("failed to set up tracing subscriber")?;

let Args {
run_dataflow,
machine_id,
@@ -50,6 +47,9 @@ async fn run() -> eyre::Result<()> {
return tokio::task::block_in_place(dora_daemon::run_dora_runtime);
}

#[cfg(feature = "tracing")]
set_up_tracing("dora-daemon").wrap_err("failed to set up tracing subscriber")?;

let ctrl_c_events = {
let (ctrl_c_tx, ctrl_c_rx) = mpsc::channel(1);
let mut ctrlc_sent = false;


Loading…
Cancel
Save