aboutsummaryrefslogtreecommitdiffstats
path: root/torouterui/views.py
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-11-24 02:46:55 +0100
committerficus <ficus@robocracy.org>2012-11-24 02:47:58 +0100
commitf31914f3e22b4982fcccd1634a8bb49dca0c155c (patch)
tree79f7f612bc78dabe9fb2b7c34d74612de5e8f78c /torouterui/views.py
parentc139513eeb2f6bf159b58770f26ec75d9dc021bf (diff)
downloadtui-f31914f3e22b4982fcccd1634a8bb49dca0c155c.tar.gz
tui-f31914f3e22b4982fcccd1634a8bb49dca0c155c.zip
fix logs 500 error (due to string encoding)
Diffstat (limited to 'torouterui/views.py')
-rw-r--r--torouterui/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/torouterui/views.py b/torouterui/views.py
index 418c391..f52a89b 100644
--- a/torouterui/views.py
+++ b/torouterui/views.py
@@ -232,9 +232,9 @@ def torpage():
def logspage():
logs = dict()
logs['dmesg'] = sysstatus.get_dmesg()
- logs['syslog'] = sysstatus.get_syslog()
- logs['authlog'] = sysstatus.get_authlog()
- logs['tor'] = sysstatus.get_torlog()
+ logs['syslog'] = sysstatus.get_log("/var/log/syslog")
+ logs['authlog'] = sysstatus.get_log("/var/log/auth.log")
+ logs['tor'] = sysstatus.get_log("/var/log/tor/notices.log")
return render_template('logs.html', logs=logs)
@app.route('/processes/', methods=['GET'])