Browse Source

Retain logging for tor so that we can monitor its health

Bob Mottram 6 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,9 +179,8 @@ if [[ "$1" == "on" || "$1" == "On" || "$1" == "ON" ]]; then
179 179
 else
180 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 184
     fi
186 185
     if [ -d /var/log/radicale ]; then
187 186
         $REMOVE_FILES_COMMAND /var/log/radicale/*