logging improvements

This commit is contained in:
Jörn-Michael Miehe 2025-06-14 00:07:43 +00:00
parent e257d1cf8c
commit 10bb4feef5
3 changed files with 4 additions and 2 deletions

1
.vscode/launch.json vendored
View file

@ -22,6 +22,7 @@
"args": [ "args": [
"sharry.yavook.de", "sharry.yavook.de",
"G7RYoWME1W7-pcgipemJcr8-39FcMd92gBu-RgufeHc51z6", "G7RYoWME1W7-pcgipemJcr8-39FcMd92gBu-RgufeHc51z6",
"/lib/x86_64-linux-gnu/libLLVM-14.so",
"/lib/x86_64-linux-gnu/liblldb-14.so.1", "/lib/x86_64-linux-gnu/liblldb-14.so.1",
], ],
"env": { "env": {

View file

@ -145,6 +145,7 @@ fn main() {
match state.upload_chunk(&mut buffer) { match state.upload_chunk(&mut buffer) {
Err(e) => { Err(e) => {
// TODO better error handling (this will just retry endlessly) // TODO better error handling (this will just retry endlessly)
// Error 404: Share might have been deleted
error!("error: {e:?}"); error!("error: {e:?}");
if let Some(s) = state.rewind() { if let Some(s) = state.rewind() {

View file

@ -1,6 +1,6 @@
use std::fmt; use std::fmt;
use log::debug; use log::trace;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Hash)] #[derive(Serialize, Deserialize, Debug, Hash)]
@ -19,7 +19,7 @@ impl Uri {
pub fn endpoint(&self, endpoint: impl fmt::Display) -> String { pub fn endpoint(&self, endpoint: impl fmt::Display) -> String {
let uri = format!("{self}/{endpoint}"); let uri = format!("{self}/{endpoint}");
debug!("endpoint: {uri:?}"); trace!("endpoint: {uri:?}");
uri uri
} }