send syslog msg also for smsmode
This commit is contained in:
parent
51488cd241
commit
6a50bfac6e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue