diff --git a/yasnd-gammu.c b/yasnd-gammu.c index 68e0909..788a259 100644 --- a/yasnd-gammu.c +++ b/yasnd-gammu.c @@ -41,11 +41,12 @@ void send_sms_callback (GSM_StateMachine *sm, int status, int MessageReference, if (status==0) { sprintf(tmp,"Sent SMS on device '%s' - OK\n", GSM_GetConfig(sm, -1)->Device); sms_send_status = ERR_NONE; + log_debug(tmp,DEBUG_BASE); } else { sprintf(tmp,"Sent SMS on device '%s' - FAILURE\n", GSM_GetConfig(sm, -1)->Device); sms_send_status = ERR_UNKNOWN; + log_event(tmp); } - log_event(tmp); } bool gammu_send_sms(const char* message)