gsup client, gsup_test_client: move logging to DLGSUP category
Use the DLGSUP logging category for GSUP.
Bump the required version of libosmocore to 0.9.5 to benefit from the DLGSUP
logging category fix in core/logging.[hc].
(Id974c7be158e4d60421a98110f5c807aefd31119)
Todo: we're using a "Library" logging category, which is not really what the
library category was intended for. Instead, the GSUP client should probably be
given a logging category like DVLR or DGPRS in its initialization API.
Related: OS#1592
Change-Id: Id3938267fa062e1a997d3704cd678874306f86ee
diff --git a/openbsc/src/gprs/gsup_test_client.c b/openbsc/src/gprs/gsup_test_client.c
index c8ed03d..1889c6f 100644
--- a/openbsc/src/gprs/gsup_test_client.c
+++ b/openbsc/src/gprs/gsup_test_client.c
@@ -260,17 +260,12 @@
void *tall_bsc_ctx = NULL;
/* default categories */
-static struct log_info_cat gprs_categories[] = {
- [DGPRS] = {
- .name = "DGPRS",
- .description = "GPRS Packet Service",
- .enabled = 1, .loglevel = LOGL_INFO,
- },
+static struct log_info_cat default_categories[] = {
};
-static const struct log_info gprs_log_info = {
- .cat = gprs_categories,
- .num_cat = ARRAY_SIZE(gprs_categories),
+static const struct log_info gsup_test_client_log_info = {
+ .cat = default_categories,
+ .num_cat = ARRAY_SIZE(default_categories),
};
int main(int argc, char **argv)
@@ -279,7 +274,7 @@
char *server_host = "127.0.0.1";
uint16_t server_port = 2222;
- osmo_init_logging(&gprs_log_info);
+ osmo_init_logging(&gsup_test_client_log_info);
g_gc = gsup_client_create(server_host, server_port, gsupc_read_cb,
NULL);