Merge pull request #3106 from jlewin/design_tools

Drop tracing unless specified at compile time
This commit is contained in:
Lars Brubaker 2018-03-22 10:20:57 -07:00 committed by GitHub
commit d40d2bd716
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,8 @@ of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.
*/
//#define TRACEREQUESTS
using MatterHackers.Localizations;
using Newtonsoft.Json;
using System;
@ -138,7 +140,9 @@ namespace MatterHackers.MatterControl.VersionManagement
#endif
string jsonToSend = JsonConvert.SerializeObject(requestValues);
#if TRACEREQUESTS
System.Diagnostics.Trace.Write(string.Format("ServiceRequest: {0}\r\n {1}\r\n", uri, string.Join("\r\n\t", jsonToSend.Split(','))));
#endif
requestManager.SendPOSTRequest(uri, jsonToSend, "", "", false);
@ -313,7 +317,9 @@ namespace MatterHackers.MatterControl.VersionManagement
string jsonToSend = getJsonToSend();
#if TRACEREQUESTS
System.Diagnostics.Trace.Write(string.Format("ServiceRequest: {0}\r\n {1}\r\n", uri, string.Join("\r\n\t", jsonToSend.Split(','))));
#endif
requestManager.SendPOSTRequest(uri, jsonToSend, "", "", false);
if (requestManager.LastResponse == null)