From c782774af71b9d19af1a8367e516f63fd76e1b4d Mon Sep 17 00:00:00 2001 From: hyunho Date: Mon, 23 Apr 2018 13:56:54 +0900 Subject: Adds file logs Change-Id: I0508f0bd80d3e3f162c89b3c1d5a0983f41418ec Signed-off-by: hyunho --- src/widget_app.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/widget_app.c b/src/widget_app.c index 77b2889..4b2fad4 100755 --- a/src/widget_app.c +++ b/src/widget_app.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -574,6 +575,9 @@ static int __instance_create(widget_class_h handle, const char *id, } } + aul_widget_write_log(LOG_TAG, "[%s:%d] %s ret : %d", + __FUNCTION__, __LINE__, id, ret); + if (content_info) bundle_free(content_info); @@ -613,6 +617,9 @@ static int __instance_destroy(widget_class_h handle, const char *id, WIDGET_INSTANCE_EVENT_EXTRA_UPDATED, 0, content_info); } + aul_widget_write_log(LOG_TAG, "[%s:%d] id : %s", + __FUNCTION__, __LINE__, id); + if (content_info) bundle_free(content_info); @@ -1093,6 +1100,7 @@ static int __before_loop(int argc, char **argv) return widget_app_error(WIDGET_ERROR_INVALID_PARAMETER, __FUNCTION__, "widget_class is NULL"); } + aul_widget_write_log(LOG_TAG, "[%s:%d]", __FUNCTION__, __LINE__); vconf_notify_key_changed(VCONFKEY_SYSMAN_POWER_OFF_STATUS, __on_poweroff, NULL); @@ -1109,6 +1117,7 @@ static void __after_loop() if (app_ops->terminate) app_ops->terminate(app_user_data); + aul_widget_write_log(LOG_TAG, "[%s:%d]", __FUNCTION__, __LINE__); aul_finalize(); screen_connector_provider_fini(); -- cgit v1.2.3