From 0132bd636d52a072dff0db309c9638fce73546dc Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Tue, 4 Apr 2023 22:31:14 +0200 Subject: [PATCH] log-panics & single thread download (twitch_data) --- Cargo.toml | 6 ++++-- src/main.rs | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 87b8992..2221b15 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" [dependencies] google_bigquery = { git = "https://github.com/OMGeeky/google_bigquery" } google_youtube = { git = "https://github.com/OMGeeky/google_youtube" } -twitch_data = { version="0.1.2", git = "https://github.com/OMGeeky/twitch_data" } +twitch_data = { version="0.1.3", git = "https://github.com/OMGeeky/twitch_data" } downloader_config = { version="0.2.0", git = "https://github.com/OMGeeky/downloader_config" } tokio = "1.23" google-bigquery2 = "4.0.1" @@ -16,4 +16,6 @@ chrono = "0.4.23" nameof = "1.2.2" log = "0.4.17" simplelog = "0.12.1" -path-clean = "1.0.1" \ No newline at end of file +path-clean = "1.0.1" + +log-panics = { version = "2", features = ["with-backtrace"]} \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index c034786..0d64762 100644 --- a/src/main.rs +++ b/src/main.rs @@ -58,6 +58,7 @@ async fn main() -> Result<(), Box> { ), ]) .unwrap(); + log_panics::init(); println!("Hello, world!"); start_backup().await?; // sample().await?;