diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-02-17 16:35:23 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-02-17 16:37:33 +0100 |
| commit | 95bd2ebdcb30246d1f585ccb0336b3f3aa5519c7 (patch) | |
| tree | eff9b10fff03dcdf4c149b7c68e48a690c12e5b3 /src | |
| parent | 33752c9a41f2e79c1ef3884188968d0f48bc79d8 (diff) | |
| download | vyos-1x-95bd2ebdcb30246d1f585ccb0336b3f3aa5519c7.tar.gz vyos-1x-95bd2ebdcb30246d1f585ccb0336b3f3aa5519c7.zip | |
syslog: T8272: remove dead code from previous "file" logging support
Commit 395e3cb72 ("syslog: T6989: remove 'file' logging destination") removed
CLI support for custom file based logging targets. The code about logrotate
was not removed and just stayed "dead".
Dead code is removed by this commit.
Diffstat (limited to 'src')
| -rwxr-xr-x | src/conf_mode/system_syslog.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/conf_mode/system_syslog.py b/src/conf_mode/system_syslog.py index 7e5b4f90c..e762efd3b 100755 --- a/src/conf_mode/system_syslog.py +++ b/src/conf_mode/system_syslog.py @@ -40,7 +40,6 @@ airbag.enable() cert_dir = '/etc/rsyslog.d/certs' rsyslog_conf = '/run/rsyslog/rsyslog.conf' -logrotate_user_conf = '/etc/logrotate.d/vyos-rsyslog-user' logrotate_messages_conf = '/etc/logrotate.d/vyos-rsyslog' systemd_socket = 'syslog.socket' @@ -202,8 +201,6 @@ def generate(syslog): if not syslog: if os.path.exists(rsyslog_conf): os.unlink(rsyslog_conf) - if os.path.exists(logrotate_user_conf): - os.unlink(logrotate_user_conf) return None @@ -213,7 +210,6 @@ def generate(syslog): _save_tls_certificates_for_remote(syslog, remote_options) render(rsyslog_conf, 'rsyslog/rsyslog.conf.j2', syslog) - render(logrotate_user_conf, 'rsyslog/logrotate.j2', syslog) return None def apply(syslog): |
