|
From: Dave H. <hel...@us...> - 2012-08-28 23:29:05
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SFCB - Small Footprint CIM Broker".
The branch, master has been updated
via 58d715277c881a056833e1c69f480c0872e4f00d (commit)
from 628dcad5f3606641740758383b5e95875b52d756 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 58d715277c881a056833e1c69f480c0872e4f00d
Author: Dave Heller <hel...@us...>
Date: Tue Aug 28 19:23:39 2012 -0400
[ 3562538 ] Enable curl debug via env variable
-----------------------------------------------------------------------
Summary of changes:
diff --git a/NEWS b/NEWS
index 9e780fd..af1a090 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ New features:
- 3497831 Updates to sfcb-ps test script
- 3506453 Support peer cert verification for SSL indications
- 3531210 Allow indication delivery timeout tuning
+- 3562538 Enable curl debug via env variable
Bugs fixed:
- 3495804 Cleanup: httpProcId still defined, wrong define in cimXmlGen
diff --git a/indCIMXMLExport.c b/indCIMXMLExport.c
index c260477..b628b65 100644
--- a/indCIMXMLExport.c
+++ b/indCIMXMLExport.c
@@ -22,6 +22,7 @@
#include <curl/curl.h>
#include <sfcCommon/utilft.h>
#include "trace.h"
+#include <stdlib.h>
#include <string.h>
#include "control.h"
@@ -261,8 +262,9 @@ genRequest(CurlData * cd, char *url, char **msg)
rv = curl_easy_setopt(cd->mHandle, CURLOPT_NOSIGNAL, 1);
- // Turn this on to enable debugging
- // rv = curl_easy_setopt(cd->mHandle, CURLOPT_VERBOSE, 1);
+ char *curldebug = getenv("CURLDEBUG");
+ if (curldebug && strcasecmp(curldebug,"false"))
+ rv = curl_easy_setopt(cd->mHandle, CURLOPT_VERBOSE, 1);
return 0;
}
hooks/post-receive
--
SFCB - Small Footprint CIM Broker
|