aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-07-03 13:28:13 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-07 20:07:34 +0200
commit627e7d9bfedde852710b824a2240bde2d2a75a69 (patch)
tree65d5e4acd80e8ba064a9e40bbc46f8488f0a7383 /openbsc
parent2840b3f6c34789f9096c5ac19f45a6532e5e5a0e (diff)
gprs/test: Increase stderr log level
Enable the generation of more log messages. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/tests/gbproxy/gbproxy_test.c24
1 files changed, 20 insertions, 4 deletions
diff --git a/openbsc/tests/gbproxy/gbproxy_test.c b/openbsc/tests/gbproxy/gbproxy_test.c
index 19c150eda..6bee41ca6 100644
--- a/openbsc/tests/gbproxy/gbproxy_test.c
+++ b/openbsc/tests/gbproxy/gbproxy_test.c
@@ -871,12 +871,27 @@ static void test_gbproxy_ra_patching()
nsi = NULL;
}
-static const struct log_info_cat all_off_categories[Debug_LastEntry] = {
+static struct log_info_cat gprs_categories[] = {
+ [DGPRS] = {
+ .name = "DGPRS",
+ .description = "GPRS Packet Service",
+ .enabled = 1, .loglevel = LOGL_DEBUG,
+ },
+ [DNS] = {
+ .name = "DNS",
+ .description = "GPRS Network Service (NS)",
+ .enabled = 1, .loglevel = LOGL_INFO,
+ },
+ [DBSSGP] = {
+ .name = "DBSSGP",
+ .description = "GPRS BSS Gateway Protocol (BSSGP)",
+ .enabled = 1, .loglevel = LOGL_DEBUG,
+ },
};
static struct log_info info = {
- .cat = all_off_categories,
- .num_cat = ARRAY_SIZE(all_off_categories)
+ .cat = gprs_categories,
+ .num_cat = ARRAY_SIZE(gprs_categories),
};
int main(int argc, char **argv)
@@ -887,7 +902,8 @@ int main(int argc, char **argv)
osmo_signal_register_handler(SS_L_NS, &test_signal, NULL);
log_set_print_filename(osmo_stderr_target, 0);
- log_set_log_level(osmo_stderr_target, LOGL_INFO);
+ log_set_log_level(osmo_stderr_target, LOGL_DEBUG);
+ log_set_all_filter(osmo_stderr_target, 1);
rate_ctr_init(NULL);