diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-03-24 11:38:08 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-03-24 11:46:52 +0200 |
commit | 84a07a5b77575a981c86b7e9a3e697428d4a94d2 (patch) | |
tree | f3c9d3a89e605fa140748c34544473e9a7556d92 /src/bin/cli/mod.rs | |
parent | bcc64e41ca47b1578b3d697d02cdff0ca1e0daa3 (diff) | |
download | subplot-84a07a5b77575a981c86b7e9a3e697428d4a94d2.tar.gz |
feat! change logging to use log/env_logger instead of tracing
We don't use async in Subplot, and the mental overhead of learning
tracing and the code overhead to add support for logging custom
values (implementing the Value trait for Subplot internal types) does
not seem worthwhile.
Sponsored-by: author
Diffstat (limited to 'src/bin/cli/mod.rs')
-rw-r--r-- | src/bin/cli/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/cli/mod.rs b/src/bin/cli/mod.rs index 52f5fb1..a16df87 100644 --- a/src/bin/cli/mod.rs +++ b/src/bin/cli/mod.rs @@ -3,13 +3,13 @@ #![allow(unused)] use anyhow::Result; +use log::trace; use serde::Serialize; use std::fmt::Debug; use std::path::Path; use std::str::FromStr; use std::{collections::HashMap, convert::TryFrom}; use subplot::{DataFile, Document, Style, SubplotError}; -use tracing::{event, instrument, Level}; pub fn extract_file<'a>(doc: &'a Document, filename: &str) -> Result<&'a DataFile> { for file in doc.files() { |