Skip to content

Commit

Permalink
logtracer
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Mar 10, 2024
1 parent 99bc240 commit 522716a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/kitsune-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ testcontainers-modules = { version = "0.3.5", features = [
"postgres",
"redis",
] }
tracing-log = "0.2.0"
tracing-subscriber = "0.3.18"

[lints]
Expand Down
2 changes: 2 additions & 0 deletions crates/kitsune-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ where
Fut: Future,
{
let _ = tracing_subscriber::fmt::try_init();
let _ = tracing_log::LogTracer::init();

let resource_handle = get_resource!("DATABASE_URL", self::container::postgres);
let pool = kitsune_db::connect(&DatabaseConfig {
Expand Down Expand Up @@ -88,6 +89,7 @@ where
Fut: Future,
{
let _ = tracing_subscriber::fmt::try_init();
let _ = tracing_log::LogTracer::init();

let resource_handle = get_resource!("REDIS_URL", self::container::redis);
let client = redis::Client::open(resource_handle.url().as_ref()).unwrap();
Expand Down

0 comments on commit 522716a

Please sign in to comment.