main adjust log levels
This commit is contained in:
parent
97e9e41117
commit
78fb04403c
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue