// save last sync time in preference
double current_time = ecore_time_unix_get();
if (preference_set_double(LAST_SYNC_TIME, current_time) == PREFERENCE_ERROR_NONE) {
- LOGI("Succeed to set last sync time : %f", current_time);
+ STLOGI("Succeed to set last sync time : %f", current_time);
}
else {
STLOGW("Failed to set last sync time");
if (total_file_count_in_group == 0)
return;
- LOGI("(%2d / %2d), file progress : %3u%%", rec_file_cnt_in_group+1, total_file_count_in_group, file_progress);
+ STLOGI("(%2d / %2d), file progress : %3u%%", rec_file_cnt_in_group+1, total_file_count_in_group, file_progress);
send_message("sync_progress", NULL);
}
}
if (result == SAP_FT_TRANSFER_SUCCESS) {
- LOGI("Transfer Completed");
+ STLOGI("Transfer Completed");
if (chmod(sticker_data.file_path.c_str(), S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) == -1) {
STLOGE("Failed to change permission : %s. error : %s", sticker_data.file_path.c_str(), strerror(errno));
}
else {
- LOGI("Succeed to change permission : %s", sticker_data.file_path.c_str());
+ STLOGI("Succeed to change permission : %s", sticker_data.file_path.c_str());
char thumb_path[PATH_MAX];
char *data_path = NULL;
data_path = app_get_shared_data_path();
static void __set_file_transfer_cb(sap_file_transaction_h file_socket)
{
- LOGI("# set callbacks");
+ STLOGI("# set callbacks");
sap_file_transfer_set_progress_cb(file_socket, _on_transfer_file_in_progress, NULL);
sap_file_transfer_set_done_cb(file_socket, _on_transfer_completed, NULL);
char *data_path = NULL;
data_path = app_get_shared_data_path();
- LOGI("Path : %s", data_path);
+ STLOGI("Path : %s", data_path);
snprintf(file_path, sizeof(file_path), "%s/%s", data_path, incoming_file_name.c_str());
- LOGI("Receive filepath : %s", file_path);
+ STLOGI("Receive filepath : %s", file_path);
sticker_data.file_path = string(file_path);
if (data_path)
STLOGW("Fail");
break;
case SAP_RESULT_SUCCESS:
- LOGI("Success");
+ STLOGI("Success");
break;
}
pending_request.type = string(type ? type : "input");
ReqQueue.push(pending_request);
- LOGI("Push sync request");
+ STLOGI("Push sync request");
return false;
}
StickerRequest pending_request;
pending_request.req_type = REQUEST_TYPE_FEATURE_REQ;
ReqQueue.push(pending_request);
- LOGI("Push sync feature request");
+ STLOGI("Push sync feature request");
return;
}
StickerRequest pending_request;
pending_request.req_type = REQUEST_TYPE_SHOW_NOTIFICATION;
ReqQueue.push(pending_request);
- LOGI("Push show notification request");
+ STLOGI("Push show notification request");
return;
}
void reject_file()
{
int ret = sap_file_transfer_reject(priv_data.file_socket);
- LOGI("ret : %d", ret);
+ STLOGI("ret : %d", ret);
file_on_progress = FALSE;
}
{
file_on_progress = TRUE;
priv_data.file_socket = socket;
- LOGI("# incoming file request.");
+ STLOGI("# incoming file request.");
__set_file_transfer_cb(priv_data.file_socket);
incoming_file_name = file_path;
std::size_t found = incoming_file_name.find_last_of("/");
incoming_file_name = incoming_file_name.substr(found+1);
- LOGI("# file path : %s, incoming file name : %s", file_path, incoming_file_name.c_str());
+ STLOGI("# file path : %s, incoming file name : %s", file_path, incoming_file_name.c_str());
accept_file();
}
void *user_data) /* message exchange on_receive callback (sap_agent_data_received_cb) */
{
unsigned int buf_len = strlen((char *)buffer);
- LOGI("received data: %s, len: %d, buffer len : %d", (char *)buffer, payload_length, buf_len);
+ STLOGI("received data: %s, len: %d, buffer len : %d", (char *)buffer, payload_length, buf_len);
JsonParser *parser = json_parser_new();
GError *err_msg = NULL;
switch (result)
{
case SAP_CONNECTION_SUCCESS:
- LOGI("Connection success");
+ STLOGI("Connection success");
priv_data.socket = socket;
sap_peer_agent_accept_service_connection(peer_agent);
sap_peer_agent_set_service_connection_terminated_cb(peer_agent, conn_terminated, &priv_data);
break;
case SAP_CONNECTION_ALREADY_EXIST:
priv_data.socket = socket;
- LOGI("Connection Already Exist");
+ STLOGI("Connection Already Exist");
break;
case SAP_CONNECTION_FAILURE_DEVICE_UNREACHABLE:
STLOGW("Connection failure device unreachable");
sap_socket_set_data_received_cb(socket, on_data_received, peer_agent);
priv->socket = socket;
- LOGI("Connection Established");
+ STLOGI("Connection Established");
process_request_queue();
case SAP_CONNECTION_ALREADY_EXIST:
priv->socket = socket;
- LOGI("Connection Already Exist");
+ STLOGI("Connection Already Exist");
break;
case SAP_CONNECTION_FAILURE_DEVICE_UNREACHABLE: