Telemetry - change NetworkState from string to json (#2338)

* change NetworkState from string to json in telemetry
This commit is contained in:
mattrutherford
2019-04-22 18:30:01 +01:00
committed by GitHub
parent 07268022cc
commit 778bf0256f
6 changed files with 42 additions and 10 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ pub fn start<C>(service: &Service<C>, exit: ::exit_future::Exit, handle: TaskExe
(proc.cpu_usage(), proc.memory())
} else { (0.0, 0) };
let network_state = serde_json::to_string(&network.network_state()).unwrap_or_default();
let network_state = network.network_state();
telemetry!(
SUBSTRATE_INFO;