From: Ian Jackson Date: Thu, 3 Sep 2020 00:40:22 +0000 (+0100) Subject: some debug X-Git-Tag: otter-0.2.0~1036 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=58a27a7a89a5338e1439f854759f1beabb21019a;p=otter.git some debug --- diff --git a/src/api.rs b/src/api.rs index 5ab15b7c..824bfe1c 100644 --- a/src/api.rs +++ b/src/api.rs @@ -117,6 +117,8 @@ impl ApiPieceOpError { lens: &dyn Lens) -> Result<(),OE> { use ApiPieceOpError::*; + eprintln!("ApiPieceOpError.report {:?}", &self); + match self { ReportViaUpdate(poe) => { let gen = ig.gs.gen; diff --git a/src/updates.rs b/src/updates.rs index 5328a01f..7f0114dc 100644 --- a/src/updates.rs +++ b/src/updates.rs @@ -308,6 +308,7 @@ impl PreparedUpdate { let mut ents = vec![]; for u in &self.us { type Prep = PreparedUpdateEntry; +eprintln!("FOR_TRANSMIT TO={:?} {:?}", dest, &u); let ue = match u { &Prep::Piece { piece, client, sameclient_cseq : cseq, ref op }