Server tools to backfill, tail, mirror, and verify PLC logs

deubg

+7 -2
+7 -2
src/mirror.rs
··· 236 236 ) -> Result<Response> { 237 237 if let Some(expected_domain) = &experimental.acme_domain { 238 238 let Some(found_host) = req.header(HOST) else { 239 + log::debug!( 240 + "expected experimental domain but missing host header. {:?}; {:?}", 241 + req.header(HOST), 242 + req.headers() 243 + ); 239 244 return Ok(bad_create_op(&format!( 240 - "missing `Host` header, expected {expected_domain} for experimental requests." 245 + "missing `Host` header, expected {expected_domain:?} for experimental requests." 241 246 ))); 242 247 }; 243 248 if found_host != expected_domain { 244 249 return Ok(bad_create_op(&format!( 245 - "experimental requests must be made to {expected_domain}, but this request's `Host` header was {found_host}" 250 + "experimental requests must be made to {expected_domain:?}, but this request's `Host` header was {found_host}" 246 251 ))); 247 252 } 248 253 }