diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-01 14:15:50 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-01 14:15:50 +0000 |
commit | 1bb6cd3e44793f984a185599a1b67bec1746c9cb (patch) | |
tree | 40335c0662c5a1759dddb4cd77dec610d4a48459 /patch-cassandane-no-syslog | |
parent | 8b4f6660a4ef8974e8d1cb34f6ba34b66598d9f8 (diff) |
automatic import of cyrus-imapdopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'patch-cassandane-no-syslog')
-rw-r--r-- | patch-cassandane-no-syslog | 41 |
1 files changed, 41 insertions, 0 deletions
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 |