1 2 3 4 5 6 7 8 9 10 11
//! Debug dump helpers for development / troubleshooting. use std::io::Write; pub fn debug_dump_api(symbol: &str, body: &str) -> std::io::Result<()> { let path = std::env::temp_dir().join(format!("yfinance_rs-quoteSummary-{symbol}.json")); let mut f = std::fs::File::create(&path)?; let _ = f.write_all(body.as_bytes()); crate::core::logging::trace_info!(path = %path.display(), "wrote quoteSummary debug dump"); Ok(()) }