send syslog msg also for smsmode

This commit is contained in:
Gregory Colpart 2015-10-01 16:18:58 -04:00
parent 51488cd241
commit 6a50bfac6e
1 changed files with 2 additions and 2 deletions

View File

@ -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);