braid/lib.rs
1// Copyright (C) The Strand-Braid Authors
2// SPDX-License-Identifier: MIT OR Apache-2.0
3
4use eyre::Result;
5
6pub fn braid_start(_name: &str) -> Result<()> {
7 dotenv::dotenv().ok();
8
9 if std::env::var_os("RUST_LOG").is_none() {
10 std::env::set_var("RUST_LOG", "braid=info,flydra2=info,braid_run=info,strand_cam=info,flydra_feature_detector=info,flydra1_triggerbox=info,warn");
11 }
12 Ok(())
13}