Skip to content

Commit

Permalink
Re-add log framework.
Browse files Browse the repository at this point in the history
  • Loading branch information
gudaoxuri committed Sep 22, 2022
1 parent 5cb3d2a commit 8b93ebc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions examples/cache/src/main.rs
Expand Up @@ -6,6 +6,7 @@ use tardis::testcontainers::clients;
use tardis::tokio;
use tardis::tokio::time::sleep;
use tardis::TardisFuns;
外部内容

#[tokio::main]
async fn main() -> TardisResult<()> {
Expand Down
2 changes: 1 addition & 1 deletion tardis-macros/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "tardis-macros"
version = "0.1.0-alpha25"
version = "0.1.0-alpha26"
authors = ["gudaoxuri <i@sunisle.org>"]
description = "Elegant, clean Rust development framework"
keywords = ["http", "database", "web", "redis", "mq"]
Expand Down
11 changes: 8 additions & 3 deletions tardis/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "tardis"
version = "0.1.0-alpha25"
version = "0.1.0-alpha26"
authors = ["gudaoxuri <i@sunisle.org>"]
description = "Elegant, clean Rust development framework"
keywords = ["http", "database", "web", "redis", "mq"]
Expand Down Expand Up @@ -50,7 +50,6 @@ nanoid = { version = "0.4" }
base64 = { version = "0.13" }
hex = { version = "0.4" }
lazy_static = { version = "1.4" }
log = { version = "0.4" }
rand = { version = "0.8" }
rand_core = { version = "0.6" }
chrono = { version = "0.4" }
Expand All @@ -59,9 +58,15 @@ config = { version = "0.13" }
regex = { version = "1.5" }
url = { version = "2.2" }
openssl = { version = "0.10", features = ["vendored"] }
# Log
log = { version = "0.4" }
tracing = { version = "0.1"}
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

# macros
tardis-macros = { version = "0.1.0-alpha25", path = "../tardis-macros", optional = true }
tardis-macros = { version = "0.1.0-alpha26", path = "../tardis-macros", optional = true }



# Tokio
tokio = { version = "1.18", features = ["macros", "rt-multi-thread", "signal", "time"], optional = true }
Expand Down
2 changes: 0 additions & 2 deletions tardis/src/basic/logger.rs
Expand Up @@ -14,8 +14,6 @@ impl TardisLogger {
if std::env::var_os("RUST_LOG").is_none() {
std::env::set_var("RUST_LOG", "info");
}

#[cfg(feature = "trace")]
tracing_subscriber::fmt::init();
Ok(())
}
Expand Down

0 comments on commit 8b93ebc

Please sign in to comment.