refactor: Added a debug line for logging to output the config used when starting Managarr

This commit is contained in:
2025-01-26 14:56:37 -07:00
parent e8a6f740b9
commit 78f104f558
5 changed files with 49 additions and 3 deletions
+2 -1
View File
@@ -13,7 +13,7 @@ use crossterm::execute;
use crossterm::terminal::{
disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen,
};
use log::{error, warn};
use log::{debug, error, warn};
use network::NetworkTrait;
use ratatui::backend::CrosstermBackend;
use ratatui::Terminal;
@@ -93,6 +93,7 @@ async fn main() -> Result<()> {
confy::load("managarr", "config")?
};
let spinner_disabled = args.disable_spinner;
debug!("Managarr loaded using config: {config:?}");
config.validate();
let reqwest_client = build_network_client(&config);
let (sync_network_tx, sync_network_rx) = mpsc::channel(500);