use osmo_init_logging2

Change-Id: If4449cce1af46be22cc370abd3a6da8e22a31fa5
diff --git a/src/db_test.c b/src/db_test.c
index 7891c90..0d10797 100644
--- a/src/db_test.c
+++ b/src/db_test.c
@@ -49,7 +49,7 @@
 
 	g_hlr = talloc_zero(NULL, struct hlr);
 
-	rc = osmo_init_logging(&hlr_log_info);
+	rc = osmo_init_logging2(g_hlr, &hlr_log_info);
 	if (rc < 0) {
 		fprintf(stderr, "Error initializing logging\n");
 		exit(1);
diff --git a/src/hlr.c b/src/hlr.c
index 4fbc268..3845993 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -475,7 +475,7 @@
 
 	g_hlr = talloc_zero(hlr_ctx, struct hlr);
 
-	rc = osmo_init_logging(&hlr_log_info);
+	rc = osmo_init_logging2(hlr_ctx, &hlr_log_info);
 	if (rc < 0) {
 		fprintf(stderr, "Error initializing logging\n");
 		exit(1);
diff --git a/src/hlr_db_tool.c b/src/hlr_db_tool.c
index 318308c..e83b098 100644
--- a/src/hlr_db_tool.c
+++ b/src/hlr_db_tool.c
@@ -386,7 +386,7 @@
 	OSMO_ASSERT(g_hlr_db_tool_ctx);
 	talloc_set_name_const(g_hlr_db_tool_ctx, "OsmoHLR-db-tool");
 
-	rc = osmo_init_logging(&hlr_log_info);
+	rc = osmo_init_logging2(g_hlr_db_tool_ctx, &hlr_log_info);
 	if (rc < 0) {
 		fprintf(stderr, "Error initializing logging\n");
 		exit(EXIT_FAILURE);