diff options
author | pmikus <peter.mikus@protonmail.ch> | 2023-05-05 08:51:26 +0000 |
---|---|---|
committer | pmikus <peter.mikus@protonmail.ch> | 2023-05-05 08:51:26 +0000 |
commit | 9b28d46b56183770b8b354467f469c7fe5d7f19d (patch) | |
tree | 709b9b32f5febc82dd3fafa30aae0896301c09d6 /resources/libraries/python | |
parent | 115cf4fdd4604424306624cf534ad563fee4991d (diff) |
fix(core): Move log files to default
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: Ie88729cbd3916372cdbf5769974654edf066d5d7
Diffstat (limited to 'resources/libraries/python')
-rw-r--r-- | resources/libraries/python/VppConfigGenerator.py | 6 |
1 files changed, 1 insertions, 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"): |