mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-hlr.git
synced 2025-11-03 05:33:28 +00:00
fix default logging levels to NOTICE, not DEBUG
Tweak unit test binaries to still used DEBUG loglevels, so that their expected outputs remain unchanged (and nicely verbose). Adjust test_nodes.vty, now expecting the 'notice' log levels upon 'show running-config'. Change-Id: Ic061e61c9625b49cef8bc2a2c0b936e262c22268
This commit is contained in:
committed by
Harald Welte
parent
dbced93b5f
commit
6eb231eccc
@@ -5,19 +5,19 @@ const struct log_info_cat hlr_log_info_cat[] = {
|
||||
[DMAIN] = {
|
||||
.name = "DMAIN",
|
||||
.description = "Main Program",
|
||||
.enabled = 1, .loglevel = LOGL_DEBUG,
|
||||
.enabled = 1, .loglevel = LOGL_NOTICE,
|
||||
},
|
||||
[DDB] = {
|
||||
.name = "DDB",
|
||||
.description = "Database Layer",
|
||||
.color = "\033[1;31m",
|
||||
.enabled = 1, .loglevel = LOGL_DEBUG,
|
||||
.enabled = 1, .loglevel = LOGL_NOTICE,
|
||||
},
|
||||
[DAUC] = {
|
||||
.name = "DAUC",
|
||||
.description = "Authentication Center",
|
||||
.color = "\033[1;33m",
|
||||
.enabled = 1, .loglevel = LOGL_DEBUG,
|
||||
.enabled = 1, .loglevel = LOGL_NOTICE,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -615,6 +615,7 @@ int main(int argc, char **argv)
|
||||
log_set_print_timestamp(osmo_stderr_target, 0);
|
||||
log_set_use_color(osmo_stderr_target, 0);
|
||||
log_set_print_category(osmo_stderr_target, 1);
|
||||
log_parse_category_mask(osmo_stderr_target, "DMAIN,1:DDB,1:DAUC,1");
|
||||
|
||||
test_gen_vectors_2g_only();
|
||||
test_gen_vectors_2g_plus_3g();
|
||||
|
||||
@@ -107,6 +107,7 @@ int main()
|
||||
log_set_print_timestamp(osmo_stderr_target, 0);
|
||||
log_set_use_color(osmo_stderr_target, 0);
|
||||
log_set_print_category(osmo_stderr_target, 1);
|
||||
log_parse_category_mask(osmo_stderr_target, "DMAIN,1:DDB,1:DAUC,1");
|
||||
|
||||
FUNCTION_CALLS
|
||||
|
||||
|
||||
@@ -816,6 +816,7 @@ int main(int argc, char **argv)
|
||||
log_set_print_timestamp(osmo_stderr_target, 0);
|
||||
log_set_use_color(osmo_stderr_target, 0);
|
||||
log_set_print_category(osmo_stderr_target, 1);
|
||||
log_parse_category_mask(osmo_stderr_target, "DMAIN,1:DDB,1:DAUC,1");
|
||||
|
||||
/* omit the SQLite version and compilation flags from test output */
|
||||
log_set_log_level(osmo_stderr_target, LOGL_ERROR);
|
||||
|
||||
@@ -101,9 +101,9 @@ log stderr
|
||||
logging print category 1
|
||||
logging print extended-timestamp 1
|
||||
logging level all debug
|
||||
logging level main debug
|
||||
logging level db debug
|
||||
logging level auc debug
|
||||
logging level main notice
|
||||
logging level db notice
|
||||
logging level auc notice
|
||||
...
|
||||
!
|
||||
line vty
|
||||
|
||||
Reference in New Issue
Block a user