Browse Source

Retain logging for tor so that we can monitor its health

Bob Mottram 7 years ago
parent
commit
cecd4d876c
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      src/freedombone-logging

+ 2
- 3
src/freedombone-logging View File

179
 else
179
 else
180
     turn_logging_off
180
     turn_logging_off
181
 
181
 
182
-    if [ -d /etc/tor ]; then
183
-        echo 'Log notice file /dev/null' > /etc/torrc.d/logging
184
-        rm /var/log/tor/*
182
+    if [ -d /etc/torrc.d ]; then
183
+        echo 'Log notice file /var/log/tor/notices.log' > /etc/torrc.d/logging
185
     fi
184
     fi
186
     if [ -d /var/log/radicale ]; then
185
     if [ -d /var/log/radicale ]; then
187
         $REMOVE_FILES_COMMAND /var/log/radicale/*
186
         $REMOVE_FILES_COMMAND /var/log/radicale/*