diff options
author | ficus <ficus@robocracy.org> | 2012-11-23 20:42:34 +0100 |
---|---|---|
committer | ficus <ficus@robocracy.org> | 2012-11-23 20:42:34 +0100 |
commit | dab36ce2c66e4c11798af024295fd18da3162a4f (patch) | |
tree | b7985d158f59bc6e032d4c1eeea94d459872c6a3 | |
parent | 0663c3a0bd3b8968b7d425ac2c35d52fe72138cd (diff) | |
download | tui-dab36ce2c66e4c11798af024295fd18da3162a4f.tar.gz tui-dab36ce2c66e4c11798af024295fd18da3162a4f.zip |
more descriptive log errors
-rw-r--r-- | torouterui/sysstatus.py | 8 |
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(): """ |