Don't send qi reports in dev

This commit is contained in:
Félix Saparelli 2022-06-08 01:28:00 +12:00
parent 148d34e980
commit ea10736e13
No known key found for this signature in database
GPG key ID: B948C4BAE44FC474

View file

@ -77,6 +77,11 @@ impl QuickInstall {
}
pub async fn report(&self) -> Result<(), BinstallError> {
if cfg!(debug_assertions) {
debug!("Not sending quickinstall report in debug mode");
return Ok(());
}
let url = Url::parse(&self.stats_url())?;
debug!("Sending installation report to quickinstall ({url})");