From 6a50bfac6e782626675bccba34aa0b815c35a863 Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Thu, 1 Oct 2015 16:18:58 -0400 Subject: [PATCH] send syslog msg also for smsmode --- sendsms2smsmode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sendsms2smsmode.c b/sendsms2smsmode.c index be53d18..5e5352f 100644 --- a/sendsms2smsmode.c +++ b/sendsms2smsmode.c @@ -215,8 +215,8 @@ int main(void) { subresult = strstr(result,"0 | "); if (subresult) { sscanf(subresult,"0 | %s",subsubresult); - //snprintf(tmpmsg,24+strlen(subsubresult),"send sms with success: %s\n",subsubresult); - //syslog(LOG_INFO,tmpmsg); + snprintf(tmpmsg,24+strlen(subsubresult),"send sms with success: %s\n",subsubresult); + syslog(LOG_INFO,tmpmsg); } else { myerror("error while sending"); snprintf(tmpmsg,22+strlen(result),"error while sending :\n%s",result);