debug: config logging before templates: use pprint and an all-caps label
Change-Id: I0e1c1d3ce8163d5b40c17b7d0fb0847a068ced76
This commit is contained in:
parent
6d8e485a2b
commit
943c81d878
|
@ -18,6 +18,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import os
|
||||
import pprint
|
||||
from . import log, config, util, template, process
|
||||
|
||||
class OsmoBtsTrx(log.Origin):
|
||||
|
@ -93,7 +94,8 @@ class OsmoBtsTrx(log.Origin):
|
|||
config.overlay(values, self.suite_run.config())
|
||||
config.overlay(values, dict(osmo_bts_trx=dict(oml_remote_ip=self.nitb.addr())))
|
||||
config.overlay(values, dict(osmo_bts_trx=self.conf))
|
||||
self.dbg(conf=values)
|
||||
|
||||
self.dbg('OSMO-BTS-TRX CONFIG:\n' + pprint.pformat(values))
|
||||
|
||||
with open(self.config_file, 'w') as f:
|
||||
r = template.render(OsmoBtsTrx.CONF_BTS_TRX, values)
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import os
|
||||
import pprint
|
||||
from . import log, config, util, template, process
|
||||
|
||||
class SysmoBts(log.Origin):
|
||||
|
@ -120,7 +121,8 @@ class SysmoBts(log.Origin):
|
|||
config.overlay(values, self.suite_run.config())
|
||||
config.overlay(values, { 'osmo_bts_sysmo': { 'oml_remote_ip': self.nitb.addr() } })
|
||||
config.overlay(values, { 'osmo_bts_sysmo': self.conf })
|
||||
self.dbg(conf=values)
|
||||
|
||||
self.dbg('SYSMOBTS CONFIG:\n' + pprint.pformat(values))
|
||||
|
||||
with open(self.config_file, 'w') as f:
|
||||
r = template.render(SysmoBts.BTS_SYSMO_CFG, values)
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
import os
|
||||
import re
|
||||
import pprint
|
||||
|
||||
from . import log, util, config, template, process, osmo_ctrl, pcap_recorder
|
||||
|
||||
|
@ -76,7 +77,7 @@ class OsmoNitb(log.Origin):
|
|||
bts_list.append(bts.conf_for_nitb())
|
||||
config.overlay(values, dict(nitb=dict(net=dict(bts_list=bts_list))))
|
||||
|
||||
self.dbg(conf=values)
|
||||
self.dbg('NITB CONFIG:\n' + pprint.pformat(values))
|
||||
|
||||
with open(self.config_file, 'w') as f:
|
||||
r = template.render('osmo-nitb.cfg', values)
|
||||
|
|
Loading…
Reference in New Issue