summaryrefslogtreecommitdiff
path: root/patch-cassandane-no-syslog
blob: b5f4049d9d8802137f2c9087080b17cf809f2b13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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