logging improvements
This commit is contained in:
parent
e257d1cf8c
commit
10bb4feef5
3 changed files with 4 additions and 2 deletions
1
.vscode/launch.json
vendored
1
.vscode/launch.json
vendored
|
|
@ -22,6 +22,7 @@
|
|||
"args": [
|
||||
"sharry.yavook.de",
|
||||
"G7RYoWME1W7-pcgipemJcr8-39FcMd92gBu-RgufeHc51z6",
|
||||
"/lib/x86_64-linux-gnu/libLLVM-14.so",
|
||||
"/lib/x86_64-linux-gnu/liblldb-14.so.1",
|
||||
],
|
||||
"env": {
|
||||
|
|
|
|||
|
|
@ -145,6 +145,7 @@ fn main() {
|
|||
match state.upload_chunk(&mut buffer) {
|
||||
Err(e) => {
|
||||
// TODO better error handling (this will just retry endlessly)
|
||||
// Error 404: Share might have been deleted
|
||||
error!("error: {e:?}");
|
||||
|
||||
if let Some(s) = state.rewind() {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use std::fmt;
|
||||
|
||||
use log::debug;
|
||||
use log::trace;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Hash)]
|
||||
|
|
@ -19,7 +19,7 @@ impl Uri {
|
|||
|
||||
pub fn endpoint(&self, endpoint: impl fmt::Display) -> String {
|
||||
let uri = format!("{self}/{endpoint}");
|
||||
debug!("endpoint: {uri:?}");
|
||||
trace!("endpoint: {uri:?}");
|
||||
|
||||
uri
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue