From ece20457ccf4307c45c78c444b86f3a915ad7405 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 1 Aug 2024 13:51:44 +0000 Subject: automatic import of cyrus-imapd --- patch-cassandane-no-syslog | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 patch-cassandane-no-syslog (limited to 'patch-cassandane-no-syslog') diff --git a/patch-cassandane-no-syslog b/patch-cassandane-no-syslog new file mode 100644 index 0000000..b5f4049 --- /dev/null +++ b/patch-cassandane-no-syslog @@ -0,0 +1,41 @@ +diff --git a/cassandane/Cassandane/Instance.pm b/cassandane/Cassandane/Instance.pm +index da47518..53df2dd 100644 +--- a/cassandane/Cassandane/Instance.pm ++++ b/cassandane/Cassandane/Instance.pm +@@ -2179,12 +2179,8 @@ sub setup_syslog_replacement + { + my ($self) = @_; + +- if (not(-e 'utils/syslog.so') || not(-e 'utils/syslog_probe')) { +- xlog "utils/syslog.so not found (do you need to run 'make'?)"; +- xlog "tests will not examine syslog output"; +- $self->{have_syslog_replacement} = 0; +- return; +- } ++ $self->{have_syslog_replacement} = 0; ++ return; + + $self->{syslog_fname} = "$self->{basedir}/conf/log/syslog"; + $self->{have_syslog_replacement} = 1; +diff --git a/cassandane/Cassandane/Util/Log.pm b/cassandane/Cassandane/Util/Log.pm +index 2720801..73ae390 100644 +--- a/cassandane/Cassandane/Util/Log.pm ++++ b/cassandane/Cassandane/Util/Log.pm +@@ -52,9 +52,6 @@ our @EXPORT = qw( + + my $verbose = 0; + +-openlog('cassandane', '', LOG_LOCAL6) +- or die "Cannot openlog"; +- + sub xlog + { + my $id; +@@ -89,7 +86,6 @@ sub xlog + else { + print STDERR "$msg\n"; + } +- syslog(LOG_ERR, "$msg"); + } + + sub set_verbose -- cgit v1.2.3