diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-11-18 03:33:34 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-11-18 03:33:34 +0200 |
| commit | db1876bf3310a672176588329033ab4efc955175 (patch) | |
| tree | 7e8ed4debe87d6ba2e72a30a49d97d885a322134 /Software/Visual_Studio/Tango.Integration | |
| parent | 2ef57b73b1dc6da51a9c3353d93a815f58ea22e0 (diff) | |
| download | Tango-db1876bf3310a672176588329033ab4efc955175.tar.gz Tango-db1876bf3310a672176588329033ab4efc955175.zip | |
Fixed exception issue in TangoController.
Removed big first diagnostics response and hardware configuration request.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 9 |
1 files changed, 7 insertions, 2 deletions
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<StartDiagnosticsRequest, StartDiagnosticsResponse>(request, new TransportContinuousRequestConfig() { ShouldLog = true }).ObserveOn(new NewThreadScheduler()).Subscribe( + LogManager.Log($"Sending '{nameof(StartDiagnosticsRequest)}'..."); + + SendContinuousRequest<StartDiagnosticsRequest, StartDiagnosticsResponse>(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<UploadHardwareConfigurationRequest, UploadHardwareConfigurationResponse>(request, new TransportRequestConfig() { ShouldLog = true }); + response = await SendRequest<UploadHardwareConfigurationRequest, UploadHardwareConfigurationResponse>(request, new TransportRequestConfig() { ShouldLog = false }); } catch (Exception ex) { |
