mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 13:08:42 +00:00
Don't send qi reports in dev
This commit is contained in:
parent
148d34e980
commit
ea10736e13
1 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,11 @@ impl QuickInstall {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn report(&self) -> Result<(), BinstallError> {
|
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())?;
|
let url = Url::parse(&self.stats_url())?;
|
||||||
debug!("Sending installation report to quickinstall ({url})");
|
debug!("Sending installation report to quickinstall ({url})");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue