diff --git a/Cargo.lock b/Cargo.lock index 5ce5331..60a6e8a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3317,6 +3317,16 @@ dependencies = [ "tracing-core", ] +[[package]] +name = "tracing-serde" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc6b213177105856957181934e4920de57730fc69bf42c37ee5bb664d406d9e1" +dependencies = [ + "serde", + "tracing-core", +] + [[package]] name = "tracing-subscriber" version = "0.3.18" @@ -3327,12 +3337,15 @@ dependencies = [ "nu-ansi-term", "once_cell", "regex", + "serde", + "serde_json", "sharded-slab", "smallvec", "thread_local", "tracing", "tracing-core", "tracing-log", + "tracing-serde", ] [[package]] @@ -3354,8 +3367,8 @@ dependencies = [ [[package]] name = "twba-common" -version = "0.1.0" -source = "git+https://github.com/OMGeeky/twba.common.git#a3499ea8bf573db344ec8269782ecd576f3291b5" +version = "0.2.0" +source = "git+https://github.com/OMGeeky/twba.common.git#153196685ced86bf063b0a98cbb726f15b269dd3" dependencies = [ "tracing", "tracing-appender", diff --git a/Cargo.toml b/Cargo.toml index 270c534..830c404 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ edition = "2021" twba-backup-config = { version = "0.1.2", git = "https://github.com/OMGeeky/backup_config.git" } twba-local-db = { version = "0.2", git = "https://github.com/OMGeeky/twitch_backup.local_db.git" } twba-reqwest-backoff = { version = "0.1", git = "https://github.com/OMGeeky/twba_reqwest_backoff.git" } -twba-common = { version = "0.1", git = "https://github.com/OMGeeky/twba.common.git" } +twba-common = { version = "0.2", git = "https://github.com/OMGeeky/twba.common.git" } tracing-subscriber = "0.3" diff --git a/src/main.rs b/src/main.rs index fc5aace..f71e7bc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,7 +14,7 @@ lazy_static! { } #[tokio::main] async fn main() -> Result<()> { - init_tracing("twba_uploader"); + let _guard = init_tracing("twba_uploader"); let args = std::env::args().collect::>(); let presentation_mode = args.len() > 1; info!("Hello, world!");