summaryrefslogtreecommitdiffstats
path: root/debian/patches/default-to-var-log-syslog-on-Debian.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/default-to-var-log-syslog-on-Debian.patch')
-rw-r--r--debian/patches/default-to-var-log-syslog-on-Debian.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/default-to-var-log-syslog-on-Debian.patch b/debian/patches/default-to-var-log-syslog-on-Debian.patch
new file mode 100644
index 0000000..c2a5511
--- /dev/null
+++ b/debian/patches/default-to-var-log-syslog-on-Debian.patch
@@ -0,0 +1,25 @@
+Description: Prefer /var/log/syslog over /var/log/messages
+ On Debian the default /etc/rsyslog.conf shipped with rsyslog
+ prefers logs *.* to /var/log/syslog. Thus prefer this logfile
+ in list of default logfiles.
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/721700
+Forwarded: not-needed
+Author: Salvatore Bonaccorso <carnil@debian.org>
+Last-Update: 2015-11-16
+
+--- a/src/lnav.cc
++++ b/src/lnav.cc
+@@ -2623,10 +2623,10 @@ SELECT tbl_name FROM sqlite_master WHERE
+ }
+
+ if (!mode_flags.mf_check_configs && !lnav_data.ld_show_help_view) {
+- DEFAULT_FILES.emplace_back("var/log/messages");
+- DEFAULT_FILES.emplace_back("var/log/system.log");
+ DEFAULT_FILES.emplace_back("var/log/syslog");
+ DEFAULT_FILES.emplace_back("var/log/syslog.log");
++ DEFAULT_FILES.emplace_back("var/log/messages");
++ DEFAULT_FILES.emplace_back("var/log/system.log");
+ }
+
+ init_lnav_commands(lnav_commands);