commit | 7bb63cf0a8d37c4c10986cc3dcc9bc6dfd8de5e3 | [log] [tgz] |
---|---|---|
author | Oliver Smith <osmith@sysmocom.de> | Fri Oct 20 13:54:28 2023 +0200 |
committer | osmith <osmith@sysmocom.de> | Mon Oct 23 09:10:33 2023 +0000 |
tree | 92441442cbd9a358526d9e4a016e673222c8a8cd | |
parent | d35cd6a9cd30a63ca2a1cd3f2b5c1f7b2860df4a [diff] [blame] |
library: deduplicate f_logp Change-Id: Ie84a8a75e9f162fcbef0d07d0bc75e47a5303fa3
diff --git a/library/Osmocom_VTY_Functions.ttcn b/library/Osmocom_VTY_Functions.ttcn index a448b8b..3dd0429 100644 --- a/library/Osmocom_VTY_Functions.ttcn +++ b/library/Osmocom_VTY_Functions.ttcn
@@ -363,4 +363,14 @@ mtc.stop; } +public function f_logp(TELNETasp_PT pt, charstring log_msg) +{ + // log on TTCN3 log output + log(log_msg); + // log in stderr log + if (pt.checkstate("Mapped")) { + f_vty_transceive(pt, "logp lglobal notice TTCN3 f_logp(): " & log_msg); + } +} + }