From 78fb04403cb6b3d2c723cbc912f9b06a4c3b7f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Wed, 25 Jun 2025 16:12:52 +0000 Subject: [PATCH] `main` adjust log levels --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index ac8c9b3..a71b9fc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,7 +16,7 @@ use std::{ use clap::Parser; use console::{StyledObject, style}; -use log::{info, trace}; +use log::{debug, info, trace}; use appstate::AppState; use cli::Cli; @@ -93,14 +93,14 @@ fn main() { match p { // Error 404 (File not found) Parameter::FileID(fid) => { - trace!("requeueing file {fid:?}"); + debug!("requeueing file {fid:?}"); state.abort_upload(); } // Error 404 (Share not found) Parameter::ShareID(sid) => { // TODO ask - trace!("rebuilding share {sid:?}"); + debug!("rebuilding share {sid:?}"); // rebuild share let Ok(s) = state.rebuild_share(&args) else { @@ -117,7 +117,7 @@ fn main() { }; tries += 1; - trace!("State rewound, retrying last chunk (tries: {tries})"); + debug!("State rewound, retrying last chunk (tries: {tries})"); state = s; } }