diff --git a/playlet-lib/src/source/services/HttpClient.bs b/playlet-lib/src/source/services/HttpClient.bs index 9fe8a69a..c31ec051 100644 --- a/playlet-lib/src/source/services/HttpClient.bs +++ b/playlet-lib/src/source/services/HttpClient.bs @@ -378,13 +378,13 @@ namespace HttpClient LogInfo("Sending", m._method, m.urlTransfer.GetURL(), "ID:", m.urlTransfer.GetIdentity()) #if DEBUG - m._logCurlCommand = true + LogDebug(`======== curl command ========\n${m.ToCurlCommand()}\n==============================`) + #else + if m._logCurlCommand = true + LogInfo(`======== curl command ========\n${m.ToCurlCommand()}\n==============================`) + end if #end if - if m._logCurlCommand = true - LogInfo(`======== curl command ========\n${m.ToCurlCommand()}\n==============================`) - end if - if m._method = "POST" body = m._body if body = invalid