curl = curl_easy_init();
if (!curl) {
- CtdlLogPrintf(CTDL_ALERT, "Unable to initialize libcurl.\n");
+ syslog(LOG_ALERT, "Unable to initialize libcurl.\n");
return 1;
}
snprintf(buf, SIZ,
"Cannot load template file %s [%s]won't send notification\r\n",
file_funambol_msg, strerror(errno));
- CtdlLogPrintf(CTDL_ERR, buf);
+ syslog(LOG_ERR, buf);
CtdlAideMessage(buf, "External notifier unable to find message template!");
goto free;
snprintf(buf, SIZ,
"Cannot load template file %s; won't send notification\r\n",
file_funambol_msg);
- CtdlLogPrintf(CTDL_ERR, buf);
+ syslog(LOG_ERR, buf);
CtdlAideMessage(buf, "External notifier unable to load message template!");
goto free;
if (res) {
StrBuf *ErrMsg;
- CtdlLogPrintf(CTDL_ALERT, "libcurl error %d: %s\n", res, errmsg);
+ syslog(LOG_ALERT, "libcurl error %d: %s\n", res, errmsg);
ErrMsg = NewStrBufPlain(HKEY("Error sending your Notification\n"));
StrBufAppendPrintf(ErrMsg, "\nlibcurl error %d: %s\n", res, errmsg);
StrBufAppendBufPlain(ErrMsg, curl_errbuf, -1, 0);
ExtNotify_PutErrorMessage(Ctx, ErrMsg);
}
- CtdlLogPrintf(CTDL_DEBUG, "Funambol notified\n");
+ syslog(LOG_DEBUG, "Funambol notified\n");
free:
curl_slist_free_all (headers);
curl_easy_cleanup(curl);