Compare commits

..

3 Commits

Author SHA1 Message Date
shilpa24balaji
f032d2ca30 Merge pull request #347 from xmidt-org/4.1_pb
4.1 pb
2020-03-18 14:28:54 -07:00
Shilpa Seshadri
8c576f8f48 Merge tag '1.1.2' of https://github.com/Comcast/parodus into parodus_debug
Nov 2019 release
2019-11-13 12:58:37 -08:00
Shilpa Seshadri
dacac5fe8d To print nopoll debug logs changing level to info 2019-11-13 12:02:01 -08:00
2 changed files with 2 additions and 10 deletions

View File

@@ -745,10 +745,6 @@ int createNopollConnection(noPollCtx *ctx)
static char* build_extra_headers( const char *auth, const char *device_id,
const char *user_agent, const char *convey )
{
ParodusInfo("auth token: %s\n", (NULL != auth) ? auth: "");
ParodusInfo("device_id: %s\n", device_id);
ParodusInfo("user_agent: %s\n", user_agent);
ParodusInfo("convey: %s\n", convey);
return nopoll_strdup_printf(
"%s%s"
"\r\nX-WebPA-Device-Name: %s"
@@ -788,10 +784,6 @@ static noPollConnOpts * createConnOpts (char * extra_headers, bool secure)
}
nopoll_conn_opts_set_interface (opts,get_parodus_cfg()->webpa_interface_used);
nopoll_conn_opts_set_extra_headers (opts,extra_headers);
ParodusInfo("nopoll_conn_opts_set_extra_headers, len %d, value: %s\n", strlen(extra_headers), extra_headers);
FILE *fp = fopen("/tmp/parodus_extra_headers.txt", "w");
fprintf(fp, "%s", extra_headers);
fclose(fp);
return opts;
}

View File

@@ -146,7 +146,7 @@ void __report_log (noPollCtx * ctx, noPollDebugLevel level, const char * log_msg
if (level == NOPOLL_LEVEL_DEBUG)
{
//ParodusPrint("%s\n", log_msg);
ParodusInfo("%s\n", log_msg);
}
if (level == NOPOLL_LEVEL_INFO)
{
@@ -154,7 +154,7 @@ void __report_log (noPollCtx * ctx, noPollDebugLevel level, const char * log_msg
}
if (level == NOPOLL_LEVEL_WARNING)
{
ParodusPrint("%s\n", log_msg);
ParodusInfo("%s\n", log_msg);
}
if (level == NOPOLL_LEVEL_CRITICAL)
{