- CtdlLogPrintf(CTDL_ALERT, "libcurl error %d: %s\n",
- res,
- Ctx->IO.HttpReq.errdesc);
- ErrMsg = NewStrBufPlain(HKEY("Error sending your Notification\n"));
- StrBufAppendPrintf(ErrMsg, "\nlibcurl error %d: %s\n",
- res,
- Ctx->IO.HttpReq.errdesc);
-/// StrBufAppendBufPlain(ErrMsg, curl_errbuf, -1, 0);
- StrBufAppendBufPlain(ErrMsg, HKEY("\nWas Trying to send: \n"), 0);
- StrBufAppendBufPlain(ErrMsg, Ctx->IO.ConnectMe->PlainUrl, -1, 0);
- if (Ctx->IO.HttpReq.PlainPostDataLen > 0) {
- StrBufAppendBufPlain(ErrMsg, HKEY("\nThe Post document was: \n"), 0);
- StrBufAppendBufPlain(ErrMsg,
- Ctx->IO.HttpReq.PlainPostData,
- Ctx->IO.HttpReq.PlainPostDataLen, 0);
- StrBufAppendBufPlain(ErrMsg, HKEY("\n\n"), 0);
+ syslog(LOG_ALERT, "libcurl error %ld: %s\n",
+ IO->HttpReq.httpcode,
+ IO->HttpReq.errdesc);
+
+ ErrMsg = NewStrBufPlain(
+ HKEY("Error sending your Notification\n"));
+ StrBufAppendPrintf(ErrMsg, "\nlibcurl error %ld: \n\t\t%s\n",
+ IO->HttpReq.httpcode,
+ IO->HttpReq.errdesc);
+
+ StrBufAppendBufPlain(ErrMsg,
+ HKEY("\nWas Trying to send: \n"),
+ 0);
+
+ StrBufAppendBufPlain(ErrMsg, IO->ConnectMe->PlainUrl, -1, 0);
+ if (IO->HttpReq.PlainPostDataLen > 0) {
+ StrBufAppendBufPlain(
+ ErrMsg,
+ HKEY("\nThe Post document was: \n"),
+ 0);
+ StrBufAppendBufPlain(ErrMsg,
+ IO->HttpReq.PlainPostData,
+ IO->HttpReq.PlainPostDataLen, 0);
+ StrBufAppendBufPlain(ErrMsg, HKEY("\n\n"), 0);