mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2025-10-13 10:38:02 +00:00
Audit log view
move error logs to logs Add links for new logs in header
This commit is contained in:
@@ -40,11 +40,3 @@ def favicon():
|
||||
'favicon.ico',
|
||||
mimetype='image/vnd.microsoft.icon'
|
||||
)
|
||||
|
||||
@main_blueprint.route('/logs')
|
||||
@gm_level(9)
|
||||
def logs():
|
||||
with open('nexus_dashboard.log', 'r') as file:
|
||||
logs = '</br>'.join(file.read().split('\n')[-100:])
|
||||
return render_template('main/logs.html.j2', logs=logs)
|
||||
return '</br>'.join(all_read_text.splitlines()[-total_lines_wanted:])
|
||||
|
Reference in New Issue
Block a user