From f4ecc8d670df1a65c6a6bf29136ff5040a9a1e21 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Mon, 21 Feb 2022 16:35:25 +0100 Subject: [PATCH] net/templates/osmo-bts.cfg: modernize Move logging section to the bottom, include common_logging and common_template_warning. Change-Id: I7b29c644b53e4f1907f33664d6cde6ec76cc8c04 --- net/templates/osmo-bts.cfg | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/net/templates/osmo-bts.cfg b/net/templates/osmo-bts.cfg index 73bbed6..7feb399 100644 --- a/net/templates/osmo-bts.cfg +++ b/net/templates/osmo-bts.cfg @@ -1,29 +1,13 @@ -! -! OsmoBTS () configuration saved from vty -!! -! -log stderr - logging filter all 1 - logging print category 1 - logging print category-hex 0 - logging print level 1 - logging print file basename last - logging print extended-timestamp 1 - logging level set-all notice - logging level meas error - logging level pag error - logging level l1c error - logging level l1p error - logging level dsp error - logging level abis error -! +${include(common_template_warning)} + line vty no login -! + phy 0 instance 0 osmotrx ip local 127.0.0.1 osmotrx ip remote 127.0.0.1 + bts 0 band ${BTS_BAND} ipa unit-id ${BTS0_IPA_UNIT} @@ -32,3 +16,15 @@ bts 0 gsmtap-sapi pdtch trx 0 phy 0 instance 0 + +${foreach(LOG_OUTPUT)} +log ${LOG_OUTPUTn_TYPE} +${include(common_logging)} + logging level set-all notice + logging level meas error + logging level pag error + logging level l1c error + logging level l1p error + logging level dsp error + logging level abis error +${foreach_end}