send syslog msg also for smsmode
This commit is contained in:
parent
51488cd241
commit
6a50bfac6e
|
@ -215,8 +215,8 @@ int main(void) {
|
||||||
subresult = strstr(result,"0 | ");
|
subresult = strstr(result,"0 | ");
|
||||||
if (subresult) {
|
if (subresult) {
|
||||||
sscanf(subresult,"0 | %s",subsubresult);
|
sscanf(subresult,"0 | %s",subsubresult);
|
||||||
//snprintf(tmpmsg,24+strlen(subsubresult),"send sms with success: %s\n",subsubresult);
|
snprintf(tmpmsg,24+strlen(subsubresult),"send sms with success: %s\n",subsubresult);
|
||||||
//syslog(LOG_INFO,tmpmsg);
|
syslog(LOG_INFO,tmpmsg);
|
||||||
} else {
|
} else {
|
||||||
myerror("error while sending");
|
myerror("error while sending");
|
||||||
snprintf(tmpmsg,22+strlen(result),"error while sending :\n%s",result);
|
snprintf(tmpmsg,22+strlen(result),"error while sending :\n%s",result);
|
||||||
|
|
Loading…
Reference in a new issue