From dab36ce2c66e4c11798af024295fd18da3162a4f Mon Sep 17 00:00:00 2001 From: ficus Date: Fri, 23 Nov 2012 20:42:34 +0100 Subject: more descriptive log errors --- torouterui/sysstatus.py | 8 ++++---- 1 file 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(): """ -- cgit v1.2.3