forked from cellular-infrastructure/osmo-pcu
gprs_debug: Use only LOGL_NOTICE as default loglevel
The default loglevels of some log categories are configured to LOGL_INFO. This is still to verbose, lets use LOGL_NOTICE here. Change-Id: Ibb1cd1a94fb4fdd0147e073f8c1c82562c2c14ef Related: OS#2577
This commit is contained in:
parent
322456ed47
commit
de0e558baf
|
@ -32,14 +32,14 @@ static const struct log_info_cat default_categories[] = {
|
||||||
.name = "DCSN1",
|
.name = "DCSN1",
|
||||||
.color = "\033[1;31m",
|
.color = "\033[1;31m",
|
||||||
.description = "Concrete Syntax Notation One (CSN1)",
|
.description = "Concrete Syntax Notation One (CSN1)",
|
||||||
.loglevel = LOGL_INFO,
|
.loglevel = LOGL_NOTICE,
|
||||||
.enabled = 0,
|
.enabled = 0,
|
||||||
},
|
},
|
||||||
[DL1IF] = {
|
[DL1IF] = {
|
||||||
.name = "DL1IF",
|
.name = "DL1IF",
|
||||||
.color = "\033[1;32m",
|
.color = "\033[1;32m",
|
||||||
.description = "GPRS PCU L1 interface (L1IF)",
|
.description = "GPRS PCU L1 interface (L1IF)",
|
||||||
.loglevel = LOGL_INFO,
|
.loglevel = LOGL_NOTICE,
|
||||||
.enabled = 1,
|
.enabled = 1,
|
||||||
},
|
},
|
||||||
[DRLCMAC] = {
|
[DRLCMAC] = {
|
||||||
|
@ -81,42 +81,42 @@ static const struct log_info_cat default_categories[] = {
|
||||||
.name = "DRLCMACMEAS",
|
.name = "DRLCMACMEAS",
|
||||||
.color = "\033[1;31m",
|
.color = "\033[1;31m",
|
||||||
.description = "GPRS RLC/MAC layer Measurements (RLCMAC)",
|
.description = "GPRS RLC/MAC layer Measurements (RLCMAC)",
|
||||||
.loglevel = LOGL_INFO,
|
.loglevel = LOGL_NOTICE,
|
||||||
.enabled = 1,
|
.enabled = 1,
|
||||||
},
|
},
|
||||||
[DTBF] = {
|
[DTBF] = {
|
||||||
.name = "DTBF",
|
.name = "DTBF",
|
||||||
.color = "\033[1;34m",
|
.color = "\033[1;34m",
|
||||||
.description = "Temporary Block Flow (TBF)",
|
.description = "Temporary Block Flow (TBF)",
|
||||||
.loglevel = LOGL_INFO,
|
.loglevel = LOGL_NOTICE,
|
||||||
.enabled = 1,
|
.enabled = 1,
|
||||||
},
|
},
|
||||||
[DTBFDL] = {
|
[DTBFDL] = {
|
||||||
.name = "DTBFDL",
|
.name = "DTBFDL",
|
||||||
.color = "\033[1;34m",
|
.color = "\033[1;34m",
|
||||||
.description = "Temporary Block Flow (TBF) Downlink",
|
.description = "Temporary Block Flow (TBF) Downlink",
|
||||||
.loglevel = LOGL_INFO,
|
.loglevel = LOGL_NOTICE,
|
||||||
.enabled = 1,
|
.enabled = 1,
|
||||||
},
|
},
|
||||||
[DTBFUL] = {
|
[DTBFUL] = {
|
||||||
.name = "DTBFUL",
|
.name = "DTBFUL",
|
||||||
.color = "\033[1;34m",
|
.color = "\033[1;34m",
|
||||||
.description = "Temporary Block Flow (TBF) Uplink",
|
.description = "Temporary Block Flow (TBF) Uplink",
|
||||||
.loglevel = LOGL_INFO,
|
.loglevel = LOGL_NOTICE,
|
||||||
.enabled = 1,
|
.enabled = 1,
|
||||||
},
|
},
|
||||||
[DNS] = {
|
[DNS] = {
|
||||||
.name = "DNS",
|
.name = "DNS",
|
||||||
.color = "\033[1;34m",
|
.color = "\033[1;34m",
|
||||||
.description = "GPRS Network Service Protocol (NS)",
|
.description = "GPRS Network Service Protocol (NS)",
|
||||||
.loglevel = LOGL_INFO,
|
.loglevel = LOGL_NOTICE,
|
||||||
.enabled = 1,
|
.enabled = 1,
|
||||||
},
|
},
|
||||||
[DBSSGP] = {
|
[DBSSGP] = {
|
||||||
.name = "DBSSGP",
|
.name = "DBSSGP",
|
||||||
.color = "\033[1;34m",
|
.color = "\033[1;34m",
|
||||||
.description = "GPRS BSS Gateway Protocol (BSSGP)",
|
.description = "GPRS BSS Gateway Protocol (BSSGP)",
|
||||||
.loglevel = LOGL_INFO,
|
.loglevel = LOGL_NOTICE,
|
||||||
.enabled = 1,
|
.enabled = 1,
|
||||||
},
|
},
|
||||||
[DPCU] = {
|
[DPCU] = {
|
||||||
|
|
|
@ -809,6 +809,7 @@ int main(int argc, char **argv)
|
||||||
osmo_init_logging2(tall_pcu_ctx, &gprs_log_info);
|
osmo_init_logging2(tall_pcu_ctx, &gprs_log_info);
|
||||||
log_set_use_color(osmo_stderr_target, 0);
|
log_set_use_color(osmo_stderr_target, 0);
|
||||||
log_set_print_filename(osmo_stderr_target, 0);
|
log_set_print_filename(osmo_stderr_target, 0);
|
||||||
|
log_set_category_filter(osmo_stderr_target, DTBF, 1, LOGL_INFO);
|
||||||
if (getenv("LOGL_DEBUG"))
|
if (getenv("LOGL_DEBUG"))
|
||||||
log_set_log_level(osmo_stderr_target, LOGL_DEBUG);
|
log_set_log_level(osmo_stderr_target, LOGL_DEBUG);
|
||||||
|
|
||||||
|
|
|
@ -915,6 +915,9 @@ int main(int argc, char **argv)
|
||||||
log_set_use_color(osmo_stderr_target, 0);
|
log_set_use_color(osmo_stderr_target, 0);
|
||||||
log_set_print_filename(osmo_stderr_target, 0);
|
log_set_print_filename(osmo_stderr_target, 0);
|
||||||
|
|
||||||
|
log_set_category_filter(osmo_stderr_target, DTBF, 1, LOGL_INFO);
|
||||||
|
log_set_category_filter(osmo_stderr_target, DTBFUL, 1, LOGL_INFO);
|
||||||
|
|
||||||
printf("Making some basic type testing.\n");
|
printf("Making some basic type testing.\n");
|
||||||
|
|
||||||
test_llc();
|
test_llc();
|
||||||
|
|
Loading…
Reference in New Issue