mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
Avoid spurious log messages in development builds
This commit is contained in:
parent
9e55051811
commit
d79aeba2c1
2 changed files with 4 additions and 16 deletions
|
@ -98,15 +98,9 @@ impl AmplitudeTelemetry {
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.as_millis(),
|
.as_millis(),
|
||||||
state: Mutex::new(AmplitudeTelemetryState {
|
state: Mutex::new(AmplitudeTelemetryState {
|
||||||
os_version: platform
|
os_version: platform.os_version().ok().map(|v| v.to_string().into()),
|
||||||
.os_version()
|
|
||||||
.log_err()
|
|
||||||
.map(|v| v.to_string().into()),
|
|
||||||
os_name: platform.os_name().into(),
|
os_name: platform.os_name().into(),
|
||||||
app_version: platform
|
app_version: platform.app_version().ok().map(|v| v.to_string().into()),
|
||||||
.app_version()
|
|
||||||
.log_err()
|
|
||||||
.map(|v| v.to_string().into()),
|
|
||||||
device_id: None,
|
device_id: None,
|
||||||
queue: Default::default(),
|
queue: Default::default(),
|
||||||
flush_task: Default::default(),
|
flush_task: Default::default(),
|
||||||
|
|
|
@ -104,15 +104,9 @@ impl Telemetry {
|
||||||
http_client: client,
|
http_client: client,
|
||||||
executor: cx.background().clone(),
|
executor: cx.background().clone(),
|
||||||
state: Mutex::new(TelemetryState {
|
state: Mutex::new(TelemetryState {
|
||||||
os_version: platform
|
os_version: platform.os_version().ok().map(|v| v.to_string().into()),
|
||||||
.os_version()
|
|
||||||
.log_err()
|
|
||||||
.map(|v| v.to_string().into()),
|
|
||||||
os_name: platform.os_name().into(),
|
os_name: platform.os_name().into(),
|
||||||
app_version: platform
|
app_version: platform.app_version().ok().map(|v| v.to_string().into()),
|
||||||
.app_version()
|
|
||||||
.log_err()
|
|
||||||
.map(|v| v.to_string().into()),
|
|
||||||
device_id: None,
|
device_id: None,
|
||||||
metrics_id: None,
|
metrics_id: None,
|
||||||
queue: Default::default(),
|
queue: Default::default(),
|
||||||
|
|
Loading…
Reference in a new issue