conn = G_DBUS_CONNECTION(source_object);
message = g_dbus_connection_call_finish(conn, res, &error);
- if (error != NULL && error->code == G_DBUS_ERROR_SERVICE_UNKNOWN) {
+ if (error == NULL) {
+ g_variant_unref(message);
+ free(reply_alarm_id);
+ return;
+ }
+
+ LOGE("g_dbus_connection_call_finish Error[%d] : [%s] ", error->code, error->message);
+ if (error->code == G_DBUS_ERROR_SERVICE_UNKNOWN) {
for (gs_iter = alarm_context.alarms; gs_iter != NULL; gs_iter = g_slist_next(gs_iter) ) {
entry = gs_iter->data;
}
}
-
- LOGW("failed to send alarm expired noti [%d: %s] [id : %d, %s -> %s]",
+ LOGE("failed to send alarm expired noti [%d: %s] [id : %d, %s -> %s]",
error->code, error->message, *reply_alarm_id,
app_unique_name, service_name);
_alarm_schedule();
_rtc_set();
}
- } else {
- g_variant_unref(message);
}
free(reply_alarm_id);
-
}
void _alarm_send_noti_to_application_by_dbus(const char *app_service_name,
snprintf(buffer, ALARMMGR_LOG_BUFFER_STRING_SIZE, "[%-6d]%s\t%s\t : %ld %s\n", log_index, tag, message, now, time_str);
- SECURE_LOGW("%s", buffer);
+ LOGW("%s", buffer);
int ret = write(log_fd, buffer, strlen(buffer));
if (ret < 0) {
LOGE("Writing the alarmmgr log is failed. err: %s", strerror_r(errno, buf, sizeof(buf)));
time(¤t_time);
- SECURE_LOGW("[alarm-server]:pid=%d, app_unique_name=%s, \
+ LOGW("[alarm-server]:pid=%d, app_unique_name=%s, \
app_service_name=%s,dst_service_name=%s, c_due_time=%ld",
pid, alarm_info->app_unique_name,
alarm_info->app_service_name,