Add logs for checking sync events 42/235042/1
authorInHong Han <inhong1.han@samsung.com>
Wed, 13 May 2020 08:10:56 +0000 (17:10 +0900)
committerInHong Han <inhong1.han@samsung.com>
Tue, 2 Jun 2020 02:21:30 +0000 (11:21 +0900)
Change-Id: I6166b0ea0ba2cffa9b814d82572796954094dcfb

receiver/src/main.cpp

index dc105d0..8e04807 100644 (file)
@@ -104,6 +104,7 @@ static bool check_sync_time_condition()
         LOGD("current time : %f, last_sync_time : %f", ecore_time_unix_get(), last_sync_time);
 
         if (ecore_time_unix_get() - last_sync_time > MAX_WAIT_TIME) {
+            LOGD("Starting manual synchronization");
             initialize_sap();
             request_show_sync_notification();
             result = false;
@@ -159,6 +160,7 @@ static void app_control(app_control_h app_control, void *data)
                             if (!is_init_sap()) {
                                 if (check_sync_time_condition()) {
                                     if (check_battery_condition()) {
+                                        LOGD("Starting auto synchronization");
                                         initialize_sap();
                                         request_all_sticker_data("auto", "input");
                                     }