summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-18 19:10:18 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-18 19:47:09 +0100
commit3fdbe82065c7a51bee441ef2b7110c8f0fff7a1f (patch)
tree446e105cd9f0ecb81f1e70143f3fd638da0958fb
parenta2526a85d3f6e0ab083ef1b1f3418d75740aa1d9 (diff)
sgsn: Reduce logging verbosity of IPA/GSUP/NS/BSSGP
-rw-r--r--sgsn/SGSN_Tests.default6
-rw-r--r--sgsn/SGSN_Tests.ttcn8
2 files changed, 10 insertions, 4 deletions
diff --git a/sgsn/SGSN_Tests.default b/sgsn/SGSN_Tests.default
index 256c9c9..6d120fb 100644
--- a/sgsn/SGSN_Tests.default
+++ b/sgsn/SGSN_Tests.default
@@ -1,5 +1,11 @@
[LOGGING]
+FileMask := LOG_ALL | TTCN_MATCHING;
+
"IPA-CTRL-IPA".FileMask := ERROR | WARNING;
+"SGSN_Test-GSUP-IPA".FileMask := ERROR | WARNING;
+"SGSN_Test-Gb0-NS".FileMask := ERROR | WARNING;
+"SGSN_Test-Gb0-BSSGP".FileMask := ERROR | WARNING;
+"SGSN_Test-GSUP".FileMask := ERROR | WARNING;
[TESTPORT_PARAMETERS]
*.SGSNVTY.CTRL_MODE := "client"
diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index a381692..a02d3a9 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -92,9 +92,9 @@ type record BSSGP_ConnHdlrPars {
float t_guard
};
-private function f_init_gb(inout GbInstance gb) runs on test_CT {
- gb.vc_NS := NS_CT.create;
- gb.vc_BSSGP := BSSGP_CT.create;
+private function f_init_gb(inout GbInstance gb, charstring id) runs on test_CT {
+ gb.vc_NS := NS_CT.create(id & "-NS");
+ gb.vc_BSSGP := BSSGP_CT.create(id & "-BSSGP");
/* connect lower end of BSSGP emulation with NS upper port */
connect(gb.vc_BSSGP:BSCP, gb.vc_NS:NS_SP);
/* connect lower end of NS emulation to NS codec port (on top of IPL4) */
@@ -175,7 +175,7 @@ function f_init() runs on test_CT {
sgsn_role := false
};
- f_init_gb(g_gb[0]);
+ f_init_gb(g_gb[0], "SGSN_Test-Gb0");
f_init_gsup("SGSN_Test");
f_init_gtp("SGSN_Test");
f_init_vty();