aboutsummaryrefslogtreecommitdiffstats
path: root/torouterui/sysstatus.py
diff options
context:
space:
mode:
Diffstat (limited to 'torouterui/sysstatus.py')
-rw-r--r--torouterui/sysstatus.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/torouterui/sysstatus.py b/torouterui/sysstatus.py
index 3887724..efab9de 100644
--- a/torouterui/sysstatus.py
+++ b/torouterui/sysstatus.py
@@ -60,28 +60,28 @@ def get_dmesg():
try:
return cli_read('dmesg')
except IOError:
- return None
+ return "Couldn't read dmesg"
def get_authlog():
try:
with open('/var/log/auth.log') as f:
return ''.join(f.readlines())
except IOError:
- return None
+ return "Couldn't read /var/log/auth.log"
def get_syslog():
try:
with open('/var/log/syslog') as f:
return ''.join(f.readlines())
except IOError:
- return None
+ return "Couldn't read /var/log/syslog"
def get_torlog():
try:
with open('/var/log/tor/notices.log') as f:
return ''.join(f.readlines())
except IOError:
- return None
+ return "Couldn't read /var/log/tor/notices.log"
def get_process_list():
"""