mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 09:42:57 -07:00
Access log file from the Help & Info page
This commit is contained in:
parent
c8f7f40b46
commit
3c7b9558fe
2 changed files with 10 additions and 1 deletions
|
@ -83,7 +83,7 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Log File:</td>
|
<td>Log File:</td>
|
||||||
<td>${os.path.join(config['log_dir'],'plexpy.log')}</td>
|
<td><a class="no-highlight" href="logFile" target="_blank">${os.path.join(config['log_dir'],'plexpy.log')}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Backup Directory:</td>
|
<td>Backup Directory:</td>
|
||||||
|
|
|
@ -1145,6 +1145,15 @@ class WebInterface(object):
|
||||||
line))
|
line))
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@cherrypy.expose
|
||||||
|
def logFile(self):
|
||||||
|
try:
|
||||||
|
with open(os.path.join(plexpy.CONFIG.LOG_DIR, 'plexpy.log'), 'r') as f:
|
||||||
|
return '<pre>%s</pre>' % f.read()
|
||||||
|
except IOError as e:
|
||||||
|
return "Log file not found."
|
||||||
|
|
||||||
|
|
||||||
##### Settings #####
|
##### Settings #####
|
||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue