aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester
diff options
context:
space:
mode:
authorAndre Puschmann <andre@softwareradiosystems.com>2020-06-18 14:52:39 +0200
committerAndre Puschmann <andre@softwareradiosystems.com>2020-06-23 16:41:00 +0200
commit82ced3fb1da7af2875145ffb80483c0c1e2ce122 (patch)
tree86f3101c48521a1db2fcad7c3441e38c6271cee7 /src/osmo_gsm_tester
parent7c1c8d62e8ca2e3baa9f4c51d9aca746f9dc567c (diff)
{enb,epc,ms}_srs: expose log.all_level parameter
expose paramter to set log level, use warning as default Change-Id: I4e77e5351399aefef47a309c82b8805e2c6022c5
Diffstat (limited to 'src/osmo_gsm_tester')
-rw-r--r--src/osmo_gsm_tester/obj/enb_srs.py1
-rw-r--r--src/osmo_gsm_tester/obj/epc_srs.py1
-rw-r--r--src/osmo_gsm_tester/obj/ms_srs.py1
-rw-r--r--src/osmo_gsm_tester/templates/srsenb.conf.tmpl2
-rw-r--r--src/osmo_gsm_tester/templates/srsepc.conf.tmpl2
-rw-r--r--src/osmo_gsm_tester/templates/srsue.conf.tmpl2
6 files changed, 6 insertions, 3 deletions
diff --git a/src/osmo_gsm_tester/obj/enb_srs.py b/src/osmo_gsm_tester/obj/enb_srs.py
index 1b23172..0bf4f8b 100644
--- a/src/osmo_gsm_tester/obj/enb_srs.py
+++ b/src/osmo_gsm_tester/obj/enb_srs.py
@@ -29,6 +29,7 @@ from ..core import schema
def on_register_schemas():
config_schema = {
'enable_pcap': schema.BOOL_STR,
+ 'log_all_level': schema.STR,
}
schema.register_config_schema('enb', config_schema)
diff --git a/src/osmo_gsm_tester/obj/epc_srs.py b/src/osmo_gsm_tester/obj/epc_srs.py
index e1d9f59..9c4b004 100644
--- a/src/osmo_gsm_tester/obj/epc_srs.py
+++ b/src/osmo_gsm_tester/obj/epc_srs.py
@@ -27,6 +27,7 @@ from . import epc
def on_register_schemas():
config_schema = {
'enable_pcap': schema.BOOL_STR,
+ 'log_all_level': schema.STR,
}
schema.register_config_schema('epc', config_schema)
diff --git a/src/osmo_gsm_tester/obj/ms_srs.py b/src/osmo_gsm_tester/obj/ms_srs.py
index 57721ac..04df1ba 100644
--- a/src/osmo_gsm_tester/obj/ms_srs.py
+++ b/src/osmo_gsm_tester/obj/ms_srs.py
@@ -47,6 +47,7 @@ def on_register_schemas():
config_schema = {
'enable_pcap': schema.BOOL_STR,
+ 'log_all_level': schema.STR,
}
schema.register_config_schema('modem', config_schema)
diff --git a/src/osmo_gsm_tester/templates/srsenb.conf.tmpl b/src/osmo_gsm_tester/templates/srsenb.conf.tmpl
index e0c54a1..b58db53 100644
--- a/src/osmo_gsm_tester/templates/srsenb.conf.tmpl
+++ b/src/osmo_gsm_tester/templates/srsenb.conf.tmpl
@@ -122,7 +122,7 @@ filename = ${enb.pcap_filename}
# If set to negative, a single log file will be created.
#####################################################################
[log]
-all_level = warning
+all_level = ${enb.log_all_level}
all_hex_limit = 32
filename = ${enb.log_filename}
file_max_size = -1
diff --git a/src/osmo_gsm_tester/templates/srsepc.conf.tmpl b/src/osmo_gsm_tester/templates/srsepc.conf.tmpl
index a792989..f855127 100644
--- a/src/osmo_gsm_tester/templates/srsepc.conf.tmpl
+++ b/src/osmo_gsm_tester/templates/srsepc.conf.tmpl
@@ -93,7 +93,7 @@ filename = ${epc.pcap_filename}
# to print logs to standard output
#####################################################################
[log]
-all_level = info
+all_level = ${epc.log_all_level}
all_hex_limit = 32
filename = ${epc.log_filename}
diff --git a/src/osmo_gsm_tester/templates/srsue.conf.tmpl b/src/osmo_gsm_tester/templates/srsue.conf.tmpl
index a600f5e..a9faa75 100644
--- a/src/osmo_gsm_tester/templates/srsue.conf.tmpl
+++ b/src/osmo_gsm_tester/templates/srsue.conf.tmpl
@@ -102,7 +102,7 @@ nas_filename = /tmp/nas.pcap
# If set to negative, a single log file will be created.
#####################################################################
[log]
-all_level = warning
+all_level = ${ue.log_all_level}
phy_lib_level = none
all_hex_limit = 32
filename = ${ue.log_filename}