start tracing later

This commit is contained in:
soruh 2023-03-20 15:50:13 +01:00
parent 6f1e9836c0
commit eb2f66a7b6

View File

@ -310,8 +310,6 @@ fn main() -> eyre::Result<()> {
.set(time::UtcOffset::current_local_offset()?) .set(time::UtcOffset::current_local_offset()?)
.unwrap(); .unwrap();
setup_tracing(&config);
assert!(!config.allowed_ports.is_empty(), "no allowed ports"); assert!(!config.allowed_ports.is_empty(), "no allowed ports");
tokio::runtime::Builder::new_multi_thread() tokio::runtime::Builder::new_multi_thread()
@ -321,6 +319,8 @@ fn main() -> eyre::Result<()> {
} }
async fn tokio_main(config: Arc<Config>) -> eyre::Result<()> { async fn tokio_main(config: Arc<Config>) -> eyre::Result<()> {
setup_tracing(&config);
let cache_path = PathBuf::from("cache.json"); let cache_path = PathBuf::from("cache.json");
let (change_sender, change_receiver) = tokio::sync::watch::channel(Instant::now()); let (change_sender, change_receiver) = tokio::sync::watch::channel(Instant::now());