diff options
author | Venkatesha Sarpangala <sarpangala.v@samsung.com> | 2017-02-20 11:58:27 +0530 |
---|---|---|
committer | Venkatesha Sarpangala <sarpangala.v@samsung.com> | 2017-02-21 19:23:59 +0530 |
commit | d3c84133da116d9a20bd32e5b5c53f685b117cc8 (patch) | |
tree | 296469456969df34e962192bbbb5148372e90572 | |
parent | 36aa63e2305a3aefcc2297234e2975895eb823e8 (diff) | |
download | application-d3c84133da116d9a20bd32e5b5c53f685b117cc8.tar.gz application-d3c84133da116d9a20bd32e5b5c53f685b117cc8.tar.bz2 application-d3c84133da116d9a20bd32e5b5c53f685b117cc8.zip |
Re-adjust application logssubmit/tizen_3.0/20170222.033623accepted/tizen/3.0/wearable/20170223.073502accepted/tizen/3.0/tv/20170223.073227accepted/tizen/3.0/mobile/20170223.073110accepted/tizen/3.0/ivi/20170223.073647accepted/tizen/3.0/common/20170223.121956
Modify the log and add additional log for
debugging puporse. This can be readjusted later
Change-Id: I8039b7480a9824bad0710d17e258fb0251101aae
Signed-off-by: Venkatesha Sarpangala <sarpangala.v@samsung.com>
-rwxr-xr-x | src/app_main.c | 60 |
1 files changed, 43 insertions, 17 deletions
diff --git a/src/app_main.c b/src/app_main.c index fc57921..d6ae3af 100755 --- a/src/app_main.c +++ b/src/app_main.c @@ -144,6 +144,7 @@ void app_exit(void) void app_efl_exit(void) { + LOGW("app_efl_exit"); elm_exit(); } @@ -153,6 +154,8 @@ int app_appcore_create(void *data) app_create_cb create_cb; char locale_dir[TIZEN_PATH_MAX] = {0, }; + LOGW("app_appcore_create"); + if (app_context == NULL) return app_error(APP_ERROR_INVALID_CONTEXT, __FUNCTION__, NULL); @@ -180,6 +183,8 @@ int app_appcore_terminate(void *data) app_context_h app_context = data; app_terminate_cb terminate_cb; + LOGW("app_appcore_terminate"); + if (app_context == NULL) return app_error(APP_ERROR_INVALID_CONTEXT, __FUNCTION__, NULL); @@ -201,6 +206,8 @@ int app_appcore_pause(void *data) app_context_h app_context = data; app_pause_cb pause_cb; + LOGW("app_appcore_pause"); + if (app_context == NULL) return app_error(APP_ERROR_INVALID_CONTEXT, __FUNCTION__, NULL); @@ -218,6 +225,8 @@ int app_appcore_resume(void *data) app_context_h app_context = data; app_resume_cb resume_cb; + LOGW("app_appcore_resume"); + if (app_context == NULL) return app_error(APP_ERROR_INVALID_CONTEXT, __FUNCTION__, NULL); @@ -235,6 +244,8 @@ int app_appcore_reset(bundle *appcore_bundle, void *data) app_control_cb callback; app_control_h app_control; + LOGW("app_appcore_reset"); + if (app_context == NULL) return app_error(APP_ERROR_INVALID_CONTEXT, __FUNCTION__, NULL); @@ -255,6 +266,8 @@ int app_appcore_low_memory(void *event_info, void *data) app_context_h app_context = data; app_low_memory_cb low_memory_cb; + LOGW("app_appcore_low_memory"); + if (app_context == NULL) return app_error(APP_ERROR_INVALID_CONTEXT, __FUNCTION__, NULL); @@ -270,6 +283,8 @@ int app_appcore_low_battery(void *event_info, void *data) app_context_h app_context = data; app_low_battery_cb low_battery_cb; + LOGW("app_appcore_low_battery"); + if (app_context == NULL) return app_error(APP_ERROR_INVALID_CONTEXT, __FUNCTION__, NULL); @@ -307,6 +322,8 @@ int app_appcore_lang_changed(void *event_info, void *data) app_context_h app_context = data; app_language_changed_cb lang_changed_cb; + LOGW("app_appcore_rotation_event"); + if (app_context == NULL) return app_error(APP_ERROR_INVALID_CONTEXT, __FUNCTION__, NULL); @@ -322,6 +339,8 @@ int app_appcore_region_changed(void *event_info, void *data) app_context_h app_context = data; app_region_format_changed_cb region_changed_cb; + LOGW("app_appcore_region_changed"); + if (app_context == NULL) return app_error(APP_ERROR_INVALID_CONTEXT, __FUNCTION__, NULL); @@ -379,7 +398,7 @@ static int _ui_app_appcore_low_memory(void *event_info, void *data) app_event_handler_h handler; struct app_event_info event; - LOGI("_app_appcore_low_memory"); + LOGW("_ui_app_appcore_low_memory"); event.type = APP_EVENT_LOW_MEMORY; event.value = event_info; @@ -397,7 +416,7 @@ static int _ui_app_appcore_low_battery(void *event_info, void *data) app_event_handler_h handler; struct app_event_info event; - LOGI("_ui_app_appcore_low_battery"); + LOGW("_ui_app_appcore_low_battery"); event.type = APP_EVENT_LOW_BATTERY; event.value = event_info; @@ -416,7 +435,7 @@ static int _ui_app_appcore_rotation_event(void *event_info, enum appcore_rm rm, app_event_handler_h handler; struct app_event_info event; - LOGI("_ui_app_appcore_rotation_event"); + LOGW("_ui_app_appcore_rotation_event"); event.type = APP_EVENT_DEVICE_ORIENTATION_CHANGED; event.value = event_info; @@ -435,7 +454,7 @@ static int _ui_app_appcore_lang_changed(void *event_info, void *data) app_event_handler_h handler; struct app_event_info event; - LOGI("_ui_app_appcore_lang_changed"); + LOGW("_ui_app_appcore_lang_changed"); event.type = APP_EVENT_LANGUAGE_CHANGED; event.value = event_info; @@ -454,11 +473,11 @@ static int _ui_app_appcore_region_changed(void *event_info, void *data) struct app_event_info event; if (event_info == NULL) { - LOGI("receive empty event, ignore it"); + LOGW("receive empty event, ignore it"); return APP_ERROR_NONE; } - LOGI("_ui_app_appcore_region_changed"); + LOGW("_ui_app_appcore_region_changed"); event.type = APP_EVENT_REGION_FORMAT_CHANGED; event.value = event_info; @@ -477,8 +496,8 @@ static int _ui_app_appcore_suspended_state_changed(void *event_info, void *data) app_event_handler_h handler; struct app_event_info event; - LOGI("_ui_app_appcore_suspended_state_changed"); - LOGI("[__SUSPEND__] suspended state: %d (0: suspend, 1: wake)", *(int *)event_info); + LOGW("_ui_app_appcore_suspended_state_changed"); + LOGW("[__SUSPEND__] suspended state: %d (0: suspend, 1: wake)", *(int *)event_info); event.type = APP_EVENT_SUSPENDED_STATE_CHANGED; event.value = event_info; @@ -497,7 +516,7 @@ static int _ui_app_appcore_update_requested(void *event_info, void *data) app_event_handler_h handler; struct app_event_info event; - LOGI("_ui_app_appcore_update_requested"); + LOGW("_ui_app_appcore_update_requested"); event.type = APP_EVENT_UPDATE_REQUESTED; event.value = event_info; @@ -603,10 +622,11 @@ static void _ui_app_unset_appcore_event_cb(void) static int _ui_app_appcore_create(void *data) { - LOGI("app_appcore_create"); struct ui_app_context *app_context = data; app_create_cb create_cb; + LOGW("_ui_app_appcore_create"); + if (app_context == NULL) return app_error(APP_ERROR_INVALID_CONTEXT, __FUNCTION__, NULL); @@ -625,10 +645,11 @@ static int _ui_app_appcore_create(void *data) static int _ui_app_appcore_terminate(void *data) { - LOGI("app_appcore_terminate"); struct ui_app_context *app_context = data; app_terminate_cb terminate_cb; + LOGW("_ui_app_appcore_terminate"); + if (app_context == NULL) return app_error(APP_ERROR_INVALID_CONTEXT, __FUNCTION__, NULL); @@ -652,10 +673,11 @@ static int _ui_app_appcore_terminate(void *data) /* LCOV_EXCL_START */ static int _ui_app_appcore_pause(void *data) { - LOGI("app_appcore_pause"); struct ui_app_context *app_context = data; app_pause_cb pause_cb; + LOGW("_ui_app_appcore_pause"); + if (app_context == NULL) return app_error(APP_ERROR_INVALID_CONTEXT, __FUNCTION__, NULL); @@ -671,10 +693,11 @@ static int _ui_app_appcore_pause(void *data) /* LCOV_EXCL_START */ static int _ui_app_appcore_resume(void *data) { - LOGI("app_appcore_resume"); struct ui_app_context *app_context = data; app_resume_cb resume_cb; + LOGW("_ui_app_appcore_resume"); + if (app_context == NULL) return app_error(APP_ERROR_INVALID_CONTEXT, __FUNCTION__, NULL); @@ -689,12 +712,13 @@ static int _ui_app_appcore_resume(void *data) static int _ui_app_appcore_reset(bundle *appcore_bundle, void *data) { - LOGI("app_appcore_reset"); struct ui_app_context *app_context = data; app_control_cb callback; app_control_h app_control; int ret; + LOGW("_ui_app_appcore_reset"); + if (app_context == NULL) return app_error(APP_ERROR_INVALID_CONTEXT, __FUNCTION__, NULL); @@ -834,7 +858,7 @@ int ui_app_init(int argc, char **argv, ui_app_lifecycle_callback_s *callback, vo app_state = APP_STATE_CREATING; - LOGI("app_efl_init"); + LOGW("app_efl_init"); ret = appcore_efl_init(app_context->app_name, &argc, &argv, appcore_context); if (ret != APP_ERROR_NONE) { app_state = APP_STATE_NOT_RUNNING; @@ -861,11 +885,13 @@ int ui_app_main(int argc, char **argv, ui_app_lifecycle_callback_s *callback, vo appcore_context_h handle = NULL; int ret; + LOGW("ui_app_main"); + ret = ui_app_init(argc, argv, callback, user_data, &handle); if (ret != APP_ERROR_NONE) return app_error(ret, __FUNCTION__, NULL); - LOGI("run ui_app_main"); + LOGW("run ui_app_main"); elm_run(); ui_app_fini(handle); @@ -928,7 +954,7 @@ int ui_app_remove_event_handler(app_event_handler_h event_handler) return app_error(APP_ERROR_INVALID_PARAMETER, __FUNCTION__, "handler is null"); if (!handler_initialized) { - LOGI("handler list is not initialized"); + LOGW("handler list is not initialized"); return APP_ERROR_NONE; } |