From 9b28d46b56183770b8b354467f469c7fe5d7f19d Mon Sep 17 00:00:00 2001 From: pmikus Date: Fri, 5 May 2023 08:51:26 +0000 Subject: fix(core): Move log files to default Signed-off-by: pmikus Change-Id: Ie88729cbd3916372cdbf5769974654edf066d5d7 --- resources/libraries/python/VppConfigGenerator.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/resources/libraries/python/VppConfigGenerator.py b/resources/libraries/python/VppConfigGenerator.py index f155bcf2a7..9a117626ea 100644 --- a/resources/libraries/python/VppConfigGenerator.py +++ b/resources/libraries/python/VppConfigGenerator.py @@ -58,8 +58,6 @@ class VppConfigGenerator: self._vpp_config = u"" # VPP Service name self._vpp_service_name = u"vpp" - # VPP Logfile location - self._vpp_logfile = u"/tmp/vpe.log" # VPP Startup config location self._vpp_startup_conf = u"/etc/vpp/startup.conf" @@ -133,15 +131,13 @@ class VppConfigGenerator: if level >= 0: self._vpp_config += f"{level * indent}}}\n" - def add_unix_log(self, value=None): + def add_unix_log(self, value="/var/log/vpp/vpp.log"): """Add UNIX log configuration. :param value: Log file. :type value: str """ path = [u"unix", u"log"] - if value is None: - value = self._vpp_logfile self.add_config_item(self._nodeconfig, value, path) def add_unix_cli_listen(self, value=u"/run/vpp/cli.sock"): -- cgit 1.2.3-korg