projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ca798e
)
Apply glib log handler
51/100451/1
author
Injun Yang
<injun.yang@samsung.com>
Mon, 28 Nov 2016 06:52:20 +0000
(15:52 +0900)
committer
DoHyun Pyun
<dh79.pyun@samsung.com>
Mon, 28 Nov 2016 07:21:34 +0000
(16:21 +0900)
Change-Id: I5615822f604230893aadeb4966a9847af92ca05f
Signed-off-by: Injun Yang <injun.yang@samsung.com>
bt-service/bt-service-main.c
patch
|
blob
|
history
diff --git
a/bt-service/bt-service-main.c
b/bt-service/bt-service-main.c
index
8d78eaa
..
9a622da
100644
(file)
--- a/
bt-service/bt-service-main.c
+++ b/
bt-service/bt-service-main.c
@@
-36,6
+36,12
@@
static GMainLoop *main_loop;
static gboolean terminated = FALSE;
static gboolean is_initialized = FALSE;
+static void __on_log_glib(const gchar *log_domain, GLogLevelFlags log_level,
+ const gchar *msg, gpointer user_data)
+{
+ BT_ERR_C("%s", msg);
+}
+
static void __bt_release_service(void)
{
_bt_service_unregister_vconf_handler();
@@
-264,6
+270,8
@@
int main(void)
return 0;
}
+ g_log_set_default_handler(__on_log_glib, NULL);
+
main_loop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(main_loop);