From db1876bf3310a672176588329033ab4efc955175 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Wed, 18 Nov 2020 03:33:34 +0200 Subject: Fixed exception issue in TangoController. Removed big first diagnostics response and hardware configuration request. --- .../Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs') diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index 2bec38f82..93320c646 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -654,7 +654,9 @@ namespace Tango.Integration.Operation bool responseLogged = false; _diagnosticsSent = true; - SendContinuousRequest(request, new TransportContinuousRequestConfig() { ShouldLog = true }).ObserveOn(new NewThreadScheduler()).Subscribe( + LogManager.Log($"Sending '{nameof(StartDiagnosticsRequest)}'..."); + + SendContinuousRequest(request, new TransportContinuousRequestConfig() { ShouldLog = false }).ObserveOn(new NewThreadScheduler()).Subscribe( (response) => { if (!responseLogged) @@ -3236,8 +3238,11 @@ namespace Tango.Integration.Operation try { + LogManager.Log($"Sending '{nameof(UploadHardwareConfigurationRequest)}'..."); + LogManager.Log($"{nameof(UploadHardwareConfigurationRequest)} request:\n{request.HardwareConfiguration.ToJsonString()}", LogCategory.Debug); + CurrentHardwareConfiguration = hardwareConfiguration; - response = await SendRequest(request, new TransportRequestConfig() { ShouldLog = true }); + response = await SendRequest(request, new TransportRequestConfig() { ShouldLog = false }); } catch (Exception ex) { -- cgit v1.3.1